Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

forked from RelicSummerIntern/hamamatsu_2

Notifications You must be signed in to change notification settings

Nanai10a-Archives/workshop.2023.1

Repository files navigation

Relicサマーインターン(25卒)のサンプルアプリ

初回セットアップ手順(上から順番に実行)

# 作業ディレクトリに移動して作業を進めてください 

cp .env.example .env

# 以下はまとめてコピペして実行してください
docker run --rm \
    -u "$(id -u):$(id -g)" \
    -v "$(pwd):/var/www/html" \
    -w /var/www/html \
    laravelsail/php82-composer:latest \
    composer install

docker-compose up -d
docker-compose exec laravel.test php artisan key:generate
docker-compose exec laravel.test php artisan migrate:fresh
docker-compose exec laravel.test npm install
docker-compose exec laravel.test npm run dev

起動

docker-compose up -d
docker-compose exec laravel.test npm run dev

停止する時は下記のコマンドを実行する

docker-compose stop

URL

サンプルアプリ:http://localhost/

phpMyAdmin: http://localhost:8080/

コマンドリファレンス

# MySQLコンソールにログイン
docker-compose exec mysql mysql -u sail -p'password' example_app

# キャッシュ削除
docker-compose exec laravel.test php artisan cache:clear
docker-compose exec laravel.test php artisan config:clear
docker-compose exec laravel.test php artisan route:clear
docker-compose exec laravel.test php artisan view:clear
docker-compose exec laravel.test php artisan clear-compiled

# Laravel実行コンテナにログイン
docker-compose exec laravel.test /bin/bash

About

forked from RelicSummerIntern/hamamatsu_2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages