mirror of
https://github.com/YunoHost-Apps/diaspora_ynh.git
synced 2024-09-03 18:26:13 +02:00
problem profil
This commit is contained in:
parent
a2587c84e9
commit
8e8aaed740
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 useradd -d $final_path diaspora
|
||||||
sudo chown -R diaspora:diaspora $final_path
|
sudo chown -R diaspora:diaspora $final_path
|
||||||
|
|
||||||
sudo su - diaspora -c "echo '[[ -s \"~/.rvm/scripts/rvm\" ]] && source \"~/.rvm/scripts/rvm\"' >> ~/.bashrc"
|
sudo su - diaspora -c "echo '. ~/.rvm/scripts/rvm' >> ~/.bashrc"
|
||||||
|
|
||||||
# Config RVM and force get app deps (for debug)
|
# Config RVM and force get app deps (for debug)
|
||||||
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 "PATH=$PATH:$final_path; curl -sSL https://rvm.io/mpapis.asc | gpg --import - ; curl -L dspr.tk/1t; rvm autolibs read-fail ; rvm install 2.0 ;"
|
||||||
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'"
|
sudo su - diaspora -c "PATH=$PATH:$final_path; gem install nokogiri -v '1.6.1'; gem install raindrops -v '0.13.0'"
|
||||||
|
|
||||||
# construct diaspora app
|
# construct diaspora app
|
||||||
sudo su - diaspora -c "cd $final_path; . ~/.bashrc; RAILS_ENV=production bundle install --without test development"
|
sudo su - diaspora -c "PATH=$PATH:$final_path; 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 "PATH=$PATH:$final_path; 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"
|
sudo su - diaspora -c "PATH=$PATH:$final_path; RAILS_ENV=production bundle exec rake assets:precompile"
|
||||||
|
|
||||||
cd $ori_path
|
cd $ori_path
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue