Commit 2934e7a9627bb92ab9367923cdbcbaa13f7843d4

Authored by Dmitriy Zaporozhets
1 parent 880fef0d

Update deploy.sh script with assets commands

Showing 1 changed file with 5 additions and 4 deletions   Show diff stats
lib/support/deploy/deploy.sh
... ... @@ -28,17 +28,18 @@ sudo -u git -H git pull origin master
28 28 echo 'Deploy: Bundle and migrate'
29 29  
30 30 # change it to your needs
31   -sudo -u git -H bundle --without postgres
  31 +sudo -u git -H bundle --without aws development test postgres --deployment
32 32  
33 33 sudo -u git -H bundle exec rake db:migrate RAILS_ENV=production
  34 +sudo -u git -H bundle exec rake assets:clean RAILS_ENV=production
  35 +sudo -u git -H bundle exec rake assets:precompile RAILS_ENV=production
  36 +sudo -u git -H bundle exec rake cache:clear RAILS_ENV=production
34 37  
35 38 # return stashed changes (if necessary)
36 39 # sudo -u git -H git stash pop
37 40  
38   -
39 41 echo 'Deploy: Starting GitLab server...'
40 42 sudo service gitlab start
41 43  
42   -sleep 10
43 44 sudo -u git -H rm /home/git/gitlab/public/index.html
44 45 -echo 'Deploy: Done'
  46 +echo 'Deploy: Done'
45 47 \ No newline at end of file
... ...