Recreational programming

Checklist

Set up Laravel Deployer

❑  Go to your application folder
❑  composer require lorisleiva/laravel-deployer
❑  php artisan deploy:init
❑  php artisan deploy

Ensure your server can communicate with GitHub

  • If your server don’t have a SSH key, create one:
    ❑  ssh-keygen -t rsa -b 4096 -C "root@laraveldeployer.com"
    ❑  eval "$(ssh-agent -s)"
    ❑  ssh-add ~/.ssh/id_rsa
  • If your server don’t have github.com in its known_hosts:
    ❑  Deploy using the git_tty option.
    ❑  php artisan deploy -o git_tty=true

Set up your production environment

❑  php artisan ssh
❑  cp .env.example .env
❑  php artisan key:generate
❑  vim .env and configure your production environment.
❑  exit
❑  php artisan deploy

Update nginx configurations

❑  vim /etc/nginx/sites-available/mydomain.com
❑  Point the root folder to the current/public directory.
❑  service nginx restart && service php7.2-fpm reload

Comments

Sign in to join the conversation. · Just enter your email below to get a log in link.

You've successfully subscribed to Loris Leiva
Welcome back! You've successfully signed in.
Great! You've successfully signed up.
Your link has expired
Success! Your account is fully activated, you now have access to all content.