Skip to content

Latest commit

 

History

History
56 lines (40 loc) · 1.42 KB

File metadata and controls

56 lines (40 loc) · 1.42 KB

e-global-zone_Docker

SET UP

  1. Clone docker-compose File

    $ git clone https://github.com/JeongJaeSoon/e-global-zone_Docker.git
  2. Directory cleanup & docker-compose build / up

    $ cd e-global-zone_Docker
    $ mkdir mysql
    $ docker-compose build && docker-compose up -d
  3. Check Nginx Server Status (localhost:8888)

  4. Clone E_Global_Zone Laravel Project to src

    $ rm -r src/E_Global_Zone
    $ git clone https://github.com/JeongJaeSoon/E_Global_Zone-laravel_distributor.git
    $ cp -r E_Global_Zone-laravel_distributor src/E_Global_Zone
    $ rm -rf E_Global_Zone-laravel_distributor
  5. Deployment Laravel Project

    $ cd src/E_Global_Zone
    $ composer install
    $ cp .env.example .env
  6. modify .env DB setting

  7. Set up Laravel Project

    $ php artisan key:generate
    $ docker exec -it php php /var/www/html/E_Global_Zone/artisan migrate
    $ docker exec -it php php /var/www/html/E_Global_Zone/artisan passport:install
    $ docker exec -it php chown -R www-data:www-data /var/www/html/E_Global_Zone/public /var/www/html/E_Global_Zone/storage
    
  8. Run & Check Laravel scheduler crontab

    $ docker exec -it php crond -f
    $ docker exec -it php ps