-
Notifications
You must be signed in to change notification settings - Fork 0
Digital Ocean Commands
Stanislav Katkov edited this page Sep 6, 2017
·
7 revisions
Currently application only work for root user. Using rails user would end with issues while installing gems.
git clone https://github.com/Service-Alliance/Service_Phase_1.git Service_Phase_1
update later with:
go into folder and use git pull origin master
.
Load ENV Variables:
. /etc/default/unicorn
Update dependencies:
bundle install
If migrations needed:
RAILS_ENV=production rake db:migrate
If assets folder updated:
RAILS_ENV=production rake assets:precompile
Launch data migrations:
RAILS_ENV=production rake seed:migrate
Reset Unicorn:
service unicorn restart