Skip to content

Instantly share code, notes, and snippets.

@sergix44
Created September 24, 2018 11:32
Show Gist options
  • Select an option

  • Save sergix44/88f42d68d74da7d1fc375083b599e7be to your computer and use it in GitHub Desktop.

Select an option

Save sergix44/88f42d68d74da7d1fc375083b599e7be to your computer and use it in GitHub Desktop.
Laravel install script
#!/usr/bin/env bash
# Laravel install script
PHP_PATH=php
cp .env.example .env
nano .env
$PHP_PATH composer.phar install --no-dev
$PHP_PATH artisan key:generate
$PHP_PATH artisan storage:link
$PHP_PATH artisan config:cache
$PHP_PATH artisan route:cache
$PHP_PATH artisan migrate --seed
npm install
npm run production
echo 'Installation finished.'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment