Update setup script
This commit is contained in:
parent
ea2f390457
commit
18ad3a673f
4 changed files with 34 additions and 23 deletions
|
@ -1,19 +1,42 @@
|
|||
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
|
||||
cd ~/.rbenv && src/configure && make -C src
|
||||
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
|
||||
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
|
||||
exec bash
|
||||
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
|
||||
|
||||
RUBY_CONFIGURE_OPTS=--with-jemalloc rbenv install 3.2.2
|
||||
rbenv global 3.2.2
|
||||
|
||||
gem install bundler --no-document
|
||||
|
||||
cd live
|
||||
|
||||
yarn install --pure-lockfile
|
||||
|
||||
bundle config deployment 'true'
|
||||
bundle config without 'development test'
|
||||
bundle install -j$(getconf _NPROCESSORS_ONLN)
|
||||
|
||||
unlink /home/mastodon/setup2
|
||||
|
||||
echo << EOF
|
||||
|
||||
============== [kmyblue setup script 2 completed] ================
|
||||
|
||||
PostgreSQL and Redis are now available on localhost.
|
||||
|
||||
* PostgreSQL
|
||||
host : /var/run/postgresql
|
||||
user : mastodon
|
||||
database : mastodon_production
|
||||
password : ohagi
|
||||
|
||||
* Redis
|
||||
host : localhost
|
||||
|
||||
[IMPORTANT] Check PostgreSQL password before setup!
|
||||
|
||||
Input this command to finish setup:
|
||||
cd live
|
||||
RAILS_ENV=production bundle exec rake mastodon:setup
|
||||
|
||||
If you update kmyblue version, use following:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue