OSDN Git Service

Update deploy.sh script with assets commands
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Wed, 11 Dec 2013 14:34:10 +0000 (14:34 +0000)
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Wed, 11 Dec 2013 14:34:10 +0000 (14:34 +0000)
lib/support/deploy/deploy.sh

index 0d2f841..b96f730 100755 (executable)
@@ -28,17 +28,18 @@ sudo -u git -H git pull origin master
 echo 'Deploy: Bundle and migrate'
 
 # change it to your needs
-sudo -u git -H bundle --without postgres
+sudo -u git -H bundle --without aws development test postgres --deployment
 
 sudo -u git -H bundle exec rake db:migrate RAILS_ENV=production
+sudo -u git -H bundle exec rake assets:clean RAILS_ENV=production
+sudo -u git -H bundle exec rake assets:precompile RAILS_ENV=production
+sudo -u git -H bundle exec rake cache:clear RAILS_ENV=production
 
 # return stashed changes (if necessary)
 # sudo -u git -H git stash pop
 
-
 echo 'Deploy: Starting GitLab server...'
 sudo service gitlab start
 
-sleep 10
 sudo -u git -H rm /home/git/gitlab/public/index.html
-echo 'Deploy: Done'
+echo 'Deploy: Done'
\ No newline at end of file