Skip to content

Instantly share code, notes, and snippets.

@josephdicdican
Created January 31, 2020 15:02
Show Gist options
  • Save josephdicdican/b5063a19e68b4c111c3b221da6dcc47b to your computer and use it in GitHub Desktop.
Save josephdicdican/b5063a19e68b4c111c3b221da6dcc47b to your computer and use it in GitHub Desktop.
Lumen Deployment

Lumen Framework Deployment Process

Root: lumenapi

  • always base under this root directory

Steps below apply when it is the first time setting up the lumenapi project.

  1. Create .env basing .env.example - change necessary configuration specially DB credentials
  2. Run composer install
  3. Run php artisan migrate - to make updates on database schema if there are any
  4. Make sure storage directory has write access. To make sure, run chmod storage -R 775

Steps apply for code updates

  • Do necessary fetching of updated source codes
  • (Only when specified) - composer install - if there are any updates in the lumen dependencies composer.json
  • php artisan migrate
  • composer dumpautoload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment