Created
February 16, 2020 01:02
-
-
Save jesseschutt/c23e2f3d017f45ef4ff972664737b103 to your computer and use it in GitHub Desktop.
Forge deployment script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /home/forge/your-site.com | |
git pull origin master | |
composer install --no-interaction --prefer-dist --optimize-autoloader | |
echo "" | sudo -S service php7.3-fpm reload | |
yarn install | |
yarn production | |
# This value is set at the top of the subscriber.js | |
pkill -f mqtt-demo-process-node | |
if [ -f artisan ] | |
then | |
php artisan migrate --force | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment