#!/bin/sh
# if [ "x$(id -un)" != "xdiscourse" ] ; then
#   echo "Please run this script as discourse user" 1>&2
#   exit 1
# fi
export RAILS_ENV="${RAILS_ENV:=production}"
cd /srv/www/vhosts/gitlab-ce/
rake.ruby2.1 assets:clean
rake.ruby2.1 assets:precompile
rake.ruby2.1 db:migrate
chown -R gitlab:gitlab tmp/
chmod -R go+rX public/
touch tmp/restart.txt
