mirror of
https://github.com/YunoHost-Apps/diaspora_ynh.git
synced 2024-09-03 18:26:13 +02:00
load profile
This commit is contained in:
parent
1bbbb3031c
commit
a2587c84e9
1 changed files with 6 additions and 6 deletions
|
@ -68,16 +68,16 @@ sudo update-rc.d diaspora_ynh defaults
|
|||
sudo useradd -d $final_path diaspora
|
||||
sudo chown -R diaspora:diaspora $final_path
|
||||
|
||||
sudo su - diaspora -c "echo '[[ -s \"$HOME/.rvm/scripts/rvm\" ]] && source \"$HOME/.rvm/scripts/rvm\"' >> ~/.bashrc"
|
||||
sudo su - diaspora -c "echo '[[ -s \"~/.rvm/scripts/rvm\" ]] && source \"~/.rvm/scripts/rvm\"' >> ~/.bashrc"
|
||||
|
||||
# Config RVM and force get app deps (for debug)
|
||||
sudo su - diaspora -c "cd $final_path; curl -sSL https://rvm.io/mpapis.asc | gpg --import - ; curl -L dspr.tk/1t"
|
||||
sudo su - diaspora -c "cd $final_path; rvm autolibs read-fail ; rvm install 2.0 ; gem install nokogiri -v '1.6.1'; gem install raindrops -v '0.13.0'"
|
||||
sudo su - diaspora -c "cd $final_path; . ~/.bashrc; curl -sSL https://rvm.io/mpapis.asc | gpg --import - ; curl -L dspr.tk/1t"
|
||||
sudo su - diaspora -c "cd $final_path; . ~/.bashrc; rvm autolibs read-fail ; rvm install 2.0 ; gem install nokogiri -v '1.6.1'; gem install raindrops -v '0.13.0'"
|
||||
|
||||
# construct diaspora app
|
||||
sudo su - diaspora -c "cd $final_path; RAILS_ENV=production bundle install --without test development"
|
||||
sudo su - diaspora -c "cd $final_path; RAILS_ENV=production bundle exec rake db:create db:schema:load"
|
||||
sudo su - diaspora -c "cd $final_path; RAILS_ENV=production bundle exec rake assets:precompile"
|
||||
sudo su - diaspora -c "cd $final_path; . ~/.bashrc; RAILS_ENV=production bundle install --without test development"
|
||||
sudo su - diaspora -c "cd $final_path; . ~/.bashrc; RAILS_ENV=production bundle exec rake db:create db:schema:load"
|
||||
sudo su - diaspora -c "cd $final_path; . ~/.bashrc; RAILS_ENV=production bundle exec rake assets:precompile"
|
||||
|
||||
cd $ori_path
|
||||
|
||||
|
|
Loading…
Reference in a new issue