Gitlab@Informatics

Skip to content
Snippets Groups Projects
Select Git revision
  • 34d5208c2c5ee434d25c406d12d360f6235b9d6b
  • main default protected
  • revert
  • 64160159
  • 64160292
  • 64160073
  • html-v_page
  • 64160174
  • 64160072
  • 64160295
  • production
11 results

ossd11_c0

Laravel Logo

Latest Stable Version License

88823764 SE Camp - Laravel

1. ครั้งแรกที่รันให้ทำการ build ก่อน ด้วยคำสั่ง (ทำแค่ครั้งแรก หรือ มีการแก้ Dockerfile)

docker compose build app

2. หลังจาก build แล้วให้ทำการรัน app ด้วยคำสั่ง

docker compose up -d

3. หลังจากนั้นให้ลองรันคำสั่งใน docker ว่าสามารถรันได้ปกติหรือไม่ ด้วยคำสั่ง

docker compose exec app ls -la

หมายเหตุ สามารถรันคำสั่งอื่นๆ ได้โดยการเปลี่ยน  ls -la เป็น command อื่น ๆ

docker compose exec app <command>

4. ในครั้งแรกต้องทำการติดตั้ง package ของ laravel ก่อน ด้วยคำสั่ง composer install

docker compose exec app composer install