2015-03-01 23:51:00 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Retrieve arguments
|
|
|
|
domain=$(sudo yunohost app setting diaspora domain)
|
|
|
|
admin=$(sudo yunohost app setting diaspora admin)
|
|
|
|
final_path=$(sudo yunohost app setting diaspora final_path)
|
|
|
|
|
2015-03-05 14:44:00 +01:00
|
|
|
sudo service diaspora_ynh stop
|
|
|
|
sleep 3
|
|
|
|
|
2015-03-01 23:51:00 +01:00
|
|
|
sudo su - diaspora -c "rvm get stable"
|
|
|
|
sudo su - diaspora -c "git checkout Gemfile.lock db/schema.rb ; git pull"
|
|
|
|
sudo su - diaspora -c "bundle"
|
|
|
|
sudo su - diaspora -c "RAILS_ENV=production bundle exec rake db:migrate"
|
|
|
|
sudo su - diaspora -c "RAILS_ENV=production bundle exec rake tmp:cache:clear assets:precompile"
|
|
|
|
|
2015-03-05 14:41:11 +01:00
|
|
|
sudo service diaspora_ynh start
|