Comments (3)
會加到 .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.
我將它放入 backlog
from express-starter.
#6 在 CircleCI 用參數動態設定環境變數就可以了,下一步用 Encrypted Files
from express-starter.
Related Issues (13)
- Rest error text-list.spec.js HOT 2
- Migrate from express-graphql to apollo-server-express
- Upgrade to apollo-server-express 2
- Modular
- Docker secrets HOT 3
- Demo not working. HOT 1
- Reduce Docker image size
- Live demo is not working HOT 1
- VS Code Launch HOT 1
- GraphQL authenticate middleware HOT 2
- Vite
- Invitation - Express backend app HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from express-starter.