-
Notifications
You must be signed in to change notification settings - Fork 1
Staging
Romain Sauvaire edited this page Nov 2, 2016
·
1 revision
Sneefr utilise un serveur de « staging ». Celui-ci est géré via Forge et le « Quick Deploy » y est activé.
- nom : sneefr-staging
- IP : 188.226.252.81
- fournisseur VM : Digital Ocean
- centre de données : Amsterdam 2
Le présent script est exécuté lors de chaque déploiement sur le serveur.
# First go into the root directory of the project.
cd /home/forge/default
# Get the latest shiny stuff from the remote Git repository.
git pull origin master
# Install PHP dependencies and generate the autoloader for them.
composer install --no-interaction --no-dev --prefer-dist --optimize-autoloader
# Run any potential database migration.
php artisan migrate --force
# Flush the application cache.
php artisan cache:clear
# Generate an optimized config file for the application.
php artisan config:cache
# Install NPM packages.
npm install
# Build front-end assets and run some other tasks.
gulp --production