Skip to content
Snippets Groups Projects
Commit 521bb002 authored by Kenneth Reitz's avatar Kenneth Reitz
Browse files

export functionality

parent 5cd42454
No related branches found
No related tags found
No related merge requests found
...@@ -106,6 +106,7 @@ BUILD_DIR=$APP_DIR ...@@ -106,6 +106,7 @@ BUILD_DIR=$APP_DIR
# Set up outputs under new context # Set up outputs under new context
PROFILE_PATH="$BUILD_DIR/.profile.d/python.sh" PROFILE_PATH="$BUILD_DIR/.profile.d/python.sh"
EXPORT_PATH="$BIN_DIR/../export"
GUNICORN_PROFILE_PATH="$BUILD_DIR/.profile.d/python.gunicorn.sh" GUNICORN_PROFILE_PATH="$BUILD_DIR/.profile.d/python.gunicorn.sh"
# We'll need to send these statics to other scripts we `source`. # We'll need to send these statics to other scripts we `source`.
......
...@@ -39,11 +39,14 @@ puts-cmd() { ...@@ -39,11 +39,14 @@ puts-cmd() {
# Usage: $ set-env key value # Usage: $ set-env key value
set-env() { set-env() {
echo "export $1=$2" >> $PROFILE_PATH echo "export $1=$2" >> $PROFILE_PATH
echo "export $1=$2" >> $EXPORT_PATH
} }
# Usage: $ set-default-env key value # Usage: $ set-default-env key value
set-default-env() { set-default-env() {
echo "export $1=\${$1:-$2}" >> $PROFILE_PATH echo "export $1=\${$1:-$2}" >> $PROFILE_PATH
echo "export $1=\${$1:-$2}" >> $EXPORT_PATH
} }
# Usage: $ un-set-env key # Usage: $ un-set-env key
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment