You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So we can remove the following manual step from the deployment process:
> 9. There is one last step though. Until we don't fix it, the app server
needs to be restarted manually for the changes to be loaded. Run:
> $ ssh timeoverflow@www.timeoverflow.org
> $ sudo systemctl restart timeoverflow
> $ sudo systemctl restart sidekiq
Now Capistrano's output looks like:
```
INFO [fbff0613] Running /usr/bin/env rm -rf /var/www/timeoverflow/releases/20191220151536 as [email protected]
DEBUG [fbff0613] Command: ( export RBENV_ROOT="$HOME/.rbenv" RBENV_VERSION="" ; /usr/bin/env rm -rf /var/www/timeoverflow/releases/20191220151536 )
INFO [fbff0613] Finished in 0.183 seconds with exit status 0 (successful).
INFO [9ab57c12] Running sudo systemctl reload timeoverflow as [email protected]
DEBUG [9ab57c12] Command: sudo systemctl reload timeoverflow
INFO [9ab57c12] Finished in 0.218 seconds with exit status 0 (successful).
INFO [41e063eb] Running sudo systemctl restart sidekiq as [email protected]
DEBUG [41e063eb] Command: sudo systemctl restart sidekiq
INFO [41e063eb] Finished in 2.895 seconds with exit status 0 (successful).
DEBUG [3772e021] Running if test ! -d /var/www/timeoverflow/releases; then echo "Directory does not exist '/var/www/timeoverflow/releases'" 1>&2; false; fi as [email protected]
DEBUG [3772e021] Command: if test ! -d /var/www/timeoverflow/releases; then echo "Directory does not exist '/var/www/timeoverflow/releases'" 1>&2; false; fi
DEBUG [3772e021] Finished in 0.181 seconds with exit status 0 (successful).
INFO [266848f2] Running echo "Branch reload-unicorn-after-deployment (at fad9dbd) deployed as release 20191220152039 by pau" >> /var/www/timeoverflow/revisions.log as [email protected]
DEBUG [266848f2] Command: echo "Branch reload-unicorn-after-deployment (at fad9dbd) deployed as release 20191220152039 by pau" >> /var/www/timeoverflow/revisions.log
INFO [266848f2] Finished in 0.181 seconds with exit status 0 (successful).
```
Which generates the following log line
```
==> log/unicorn.err.log <==
E, [2019-12-20T16:20:59.911297 #32630] ERROR -- : reexec-ed child already running PID:1213
```
0 commit comments