Giter VIP home page Giter VIP logo

Comments (3)

Shyam-Chen avatar Shyam-Chen commented on June 20, 2024

會加到 .gitignore,步驟: https://github.com/Shyam-Chen/Backend-Starter-Kit#dockerization

# 現在我用這樣
env.js -> local
Dockerfile -> local
dev.Dockerfile -> development
stage.Dockerfile -> staging
prod.Dockerfile -> production

# 有可能這樣
env.js -> local
.env.dev -> development  # 把 env 帶入 container
.env.stage -> staging  # 把 env 帶入 container
.env.prod -> production  # 把 env 帶入 container
Dockerfile -> common

我現在的做法是把映像檔推到 Docker Cloud,CI 或 K8s 再從 Docker Cloud 拉下來
由於 CI 對 Dotenv 不是說很好去使用,所以從 process.env 來去操作
當然在 Docker 建置的時候,會看到環境變數,所以 Production 的 CI 權限要控管

from express-starter.

Shyam-Chen avatar Shyam-Chen commented on June 20, 2024

我將它放入 backlog

from express-starter.

Shyam-Chen avatar Shyam-Chen commented on June 20, 2024

#6 在 CircleCI 用參數動態設定環境變數就可以了,下一步用 Encrypted Files

from express-starter.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.