Skip to content

Instantly share code, notes, and snippets.

Avatar

Sergi Tur Badenas acacha

View GitHub Profile
@acacha
acacha / deploy.sh
Last active Mar 3, 2022 — forked from BenSampo/deploy.sh
Laravel deploy script
View deploy.sh
# Change to the project directory
cd $FORGE_SITE_PATH
# Turn on maintenance mode
if [ -f artisan ]; then
$FORGE_PHP artisan down || true
fi
# Pull the latest changes from the git repository
git reset --hard origin/production
@acacha
acacha / wait.js
Created Nov 15, 2017 — forked from ericelliott/wait.js
Wait -- an ES6 promise example
View wait.js
const wait = time => new Promise((resolve) => setTimeout(resolve, time));
wait(3000).then(() => console.log('Hello!')); // 'Hello!'