Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-12-11 18:34:10 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-12-11 18:34:10 +0400
commit2934e7a9627bb92ab9367923cdbcbaa13f7843d4 (patch)
tree5faee6230d784645bebd8298272114b670c3ca38 /lib/support
parent880fef0d92ba9983babdf47c3d91526b4a5729f8 (diff)
Update deploy.sh script with assets commands
Diffstat (limited to 'lib/support')
-rwxr-xr-xlib/support/deploy/deploy.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/support/deploy/deploy.sh b/lib/support/deploy/deploy.sh
index 0d2f8418bcf..b96f73058b6 100755
--- a/lib/support/deploy/deploy.sh
+++ b/lib/support/deploy/deploy.sh
@@ -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