Skip to content

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 SETUP (currently works only on staging)

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
Clone this wiki locally