@girish Thanks!
S
shaunsund
@shaunsund
Posts
-
GitHub Pages not sourcing the env.sh file -
GitHub Pages not sourcing the env.sh file@joseph Yeah. The git hook would be a better place to read the
env.sh
-
GitHub Pages not sourcing the env.sh file@joseph Looking at the Dockerfile, perhaps the BUILD_BRANCH variable is being erased when supervisord is exec'd?
-
GitHub Pages not sourcing the env.sh file@joseph I restarted the app several times.
A fresh restart gives me:
Reconnecting... root@e0458cac-c74c-450f-9784-4ef0999b34cb:/app/code# echo $BUILD_BRANCH root@e0458cac-c74c-450f-9784-4ef0999b34cb:/app/code# source /app/data/env.sh root@e0458cac-c74c-450f-9784-4ef0999b34cb:/app/code# echo $BUILD_BRANCH main root@e0458cac-c74c-450f-9784-4ef0999b34cb:/app/code#
Something seems off with the start script - at least when it sources the
env.sh
file at the start of the container. -
GitHub Pages not sourcing the env.sh fileHello,
I was using the
main
branch of a website repo and noticed it wouldn't publish pages.Turns out the app isn't sourcing the
env.sh
file as the output below shows after editing theenv.sh
file and restarting the app.Connecting... root@e0458cac-c74c-450f-9784-4ef0999b34cb:/app/code# echo $BUILD_BRANCH root@e0458cac-c74c-450f-9784-4ef0999b34cb:/app/code# cat ../data/env.sh #!/bin/bash export BUILD_BRANCH=main root@e0458cac-c74c-450f-9784-4ef0999b34cb:/app/code# echo $BUILD_BRANCH root@e0458cac-c74c-450f-9784-4ef0999b34cb:/app/code# source ../data/env.sh root@e0458cac-c74c-450f-9784-4ef0999b34cb:/app/code# echo $BUILD_BRANCH main root@e0458cac-c74c-450f-9784-4ef0999b34cb:/app/code#
Thanks!