Skip to content

Commit

Permalink
Run assets command in a subshell
Browse files Browse the repository at this point in the history
To prevent overriding HOME. h/t @icereval
  • Loading branch information
sloria committed Jun 9, 2015
1 parent 83c1254 commit 5610623
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/osf/ops.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@ Restarting the app server
.. code-block:: bash
# After pulling down changes
# Update and build assets
$ HOME=/opt/data/tmp; sudo -u www-data -s /bin/bash -c "source /opt/apps/osf/env/bin/activate && invoke assets"
# Restart uwsgi
$ sudo service uwsgi restart
# Update and build assets then restart uwsgi
$ $(HOME=/opt/data/tmp; sudo -u www-data -s /bin/bash -c "source /opt/data/envs/osf/bin/activate && invoke assets" && sudo service uwsgi restart)
Updating OSF for Meetings Database
----------------------------------
Expand Down

0 comments on commit 5610623

Please sign in to comment.