Skip to content

Instantly share code, notes, and snippets.

@jesseschutt
Created February 16, 2020 01:02
Show Gist options
  • Save jesseschutt/c23e2f3d017f45ef4ff972664737b103 to your computer and use it in GitHub Desktop.
Save jesseschutt/c23e2f3d017f45ef4ff972664737b103 to your computer and use it in GitHub Desktop.
Forge deployment script
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