Updating to make sure the envoy generated dev file is very obviously not to be edited.

This commit is contained in:
mike12345567 2021-04-07 17:52:22 +01:00
parent 6c790206a8
commit 16b5b19027
3 changed files with 3 additions and 3 deletions

2
.gitignore vendored
View File

@ -63,7 +63,7 @@ typings/
# dotenv environment variables file
.env
!hosting/.env
hosting/generated-envoy.dev.yaml
hosting/.generated-envoy.dev.yaml
# parcel-bundler cache (https://parceljs.org/)
.cache

View File

@ -27,7 +27,7 @@ services:
restart: always
image: envoyproxy/envoy:v1.16-latest
volumes:
- ./generated-envoy.dev.yaml:/etc/envoy/envoy.yaml
- ./.generated-envoy.dev.yaml:/etc/envoy/envoy.yaml
ports:
- "${MAIN_PORT}:10000"
depends_on:

View File

@ -25,7 +25,7 @@ async function init() {
// generate envoy file, always do this incase it has changed
const hostingPath = path.join(process.cwd(), "..", "..", "hosting")
const envoyHbsPath = path.join(hostingPath, "envoy.dev.yaml.hbs")
const envoyOutputPath = path.join(hostingPath, "generated-envoy.dev.yaml")
const envoyOutputPath = path.join(hostingPath, ".generated-envoy.dev.yaml")
const contents = fs.readFileSync(envoyHbsPath, "utf8")
const config = {
address: isLinux() ? "172.17.0.1" : "host.docker.internal",