---
# System prepended metadata

title: k30 發佈規則

---

k30 發佈規則
===
- 安裝所需套件
  - docker https://docs.docker.com/engine/install/
  - docker-compose https://hackmd.io/@jimmy801/docker_compose_install
  - nodejs
  - npm
    - npm install serverless
    - npm install serverless-lift
  - laravle vendor 
- 發佈
  - docker images 先列出所有已安裝的image 
  - docker rmi image_id image_id 列表的 id 除了serverless-k30-mypay-php-image-dev 和serverless-k30-mypay-php-image-prod 不刪除
  - rm laravel .env 
  - 測試站copy mytix-dev.env .env
  - serverless config credentials --provider aws --key aws key --secret aws secret  -o
  - serverless deploy --stage dev --config serverless-dev-image.yaml 發佈