Skip to content

Instantly share code, notes, and snippets.

@sulram
Last active December 9, 2020 14:55
Show Gist options
  • Save sulram/16f7288c89623f2b909b4bfe4d000dac to your computer and use it in GitHub Desktop.
Save sulram/16f7288c89623f2b909b4bfe4d000dac to your computer and use it in GitHub Desktop.
statamic deploy ploi.io
cd /home/ploi/DOMAIN_PATH
git pull origin master
composer install --no-interaction --prefer-dist --optimize-autoloader
echo "" | sudo -S service php7.4-fpm reload
php artisan optimize
php please cache:clear
php please stache:clear
php please glide:clear
echo "๐Ÿš€ Application deployed!"
docker run --rm -v $PWD:/app composer install -d ./ousia-statamic-v3 --no-interaction --prefer-dist --optimize-autoloader
docker-compose -f docker-compose-ousia.yml exec --user 1000 fpm php ../statamic/artisan optimize
docker-compose -f docker-compose-ousia.yml exec --user 1000 fpm php ../statamic/please cache:clear
docker-compose -f docker-compose-ousia.yml exec --user 1000 fpm php ../statamic/please stache:clear
docker-compose -f docker-compose-ousia.yml exec --user 1000 fpm php ../statamic/please glide:clear
#sudo chown -R marlus:marlus ./ousia-statamic-v3/storage
cd /home/ploi/tatil.marlus.com
git pull origin master
echo "" | sudo -S service php7.4-fpm reload
php please cache:clear
#php please search:update
#npm
#gulp
echo "๐Ÿš€ Application deployed!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment