Skip to content

YoshitakaSS/qiita_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

First Process Before Docker Comopose Build

  1. create network
docker network create qiita
  1. build
docker-compose up -d
  1. After build. Checking the running container
$ docker ps

CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                                         NAMES
698c65c311fc        qiita_qiita_nginx   "/usr/sbin/nginx -g …"   18 hours ago        Up 18 hours         80/tcp, 0.0.0.0:9000->90/tcp                  qiita_nginx
d74014ba024f        qiita_qiita_php     "docker-php-entrypoi…"   18 hours ago        Up 18 hours         9000/tcp                                      qiita_php
ff200aa14178        d6c4677d678a        "python3"                18 hours ago        Up 18 hours                                                       python_batch
2c63d1243a70        mysql:5.7           "docker-entrypoint.s…"   18 hours ago        Up 18 hours         3306/tcp, 33060/tcp, 0.0.0.0:4306->4306/tcp   qiita_db

about batch_container

cron setting in batch_container batch container creates json (tags, list, author...) at 10am every day

json path: /mnt/json/*

mnt dir is shared with php container

To Use Laravel Project

◆laravel-debugbar

If the following files are not created

  • /config/debugbar.php
  • /vendor/barryvdh/laravel-debugbar/config/debugbar.php
php artisan vendor:publish --provider="Barryvdh\Debugbar\ServiceProvider"

add text line in config/app.php

    'providers' => [
+       Barryvdh\Debugbar\ServiceProvider::class,
    ],
    'aliases' => [
+       'Debugbar' => Barryvdh\Debugbar\Facade::class,
    ],

add true/false in .env of laravel project

# for dev
DEBUGBAR_ENABLED=true
# for prd
DEBUGBAR_ENABLED=false

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •