Gitlab@Informatics

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

ossd11_c0

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    64160072 authored
    update table information deposit statement
    ffb94278
    History

    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