Created
July 27, 2019 09:09
-
-
Save emmaly/3fd4d66f3fd4a4f5efa7ed3e7b1f10a7 to your computer and use it in GitHub Desktop.
Upgrade Diaspora Instance (Bitnami deployment)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo /opt/bitnami/ctlscript.sh stop | |
cd /opt/bitnami/apps/diaspora/htdocs/ | |
sudo -u bitnami git checkout Gemfile | |
sudo -u bitnami git checkout Gemfile.lock | |
sudo -u bitnami git pull | |
sudo -u bitnami git checkout v0.7.12.0 | |
sudo gem install bundler | |
sudo gem install mini_portile2 | |
sudo -u bitnami bin/bundle --full-index | |
sudo /opt/bitnami/ctlscript.sh start mysql | |
sudo RAILS_ENV=production bin/rake db:migrate | |
sudo RAILS_ENV=production bin/rake assets:precompile | |
sudo RAILS_ENV=production bin/rake assets:clean | |
sudo bin/bundle clean | |
sudo /opt/bitnami/ctlscript.sh start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment