Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set PATH and other vars in .profile.d script #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,12 @@ fi

$LUA "$OPT_DIR/prepare.lua" $ROCKSPEC $OPT_DIR 2>&1 | indent

# Setting environment variables in .profile.d script (sourced at dyno startup)
mkdir -p "$BUILD_DIR"/.profile.d
cat <<EOF >"$BUILD_DIR"/.profile.d/lua.sh
PATH=/app/bin:\$PATH
export LD_LIBRARY_PATH=/app/packages/lib:$LD_LIBRARY_PATH
export LUA_CPATH="./?.so;/app/packages/lib/lua/5.1/?.so"
export LUA_PATH="./?.lua;/app/packages/share/lua/5.1/?.lua;/app/packages/share/lua/5.1/?/init.lua"
export STACK=$STACK
EOF
6 changes: 0 additions & 6 deletions bin/release
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,4 @@

cat << EOF
---
config_vars:
PATH: /app/bin:/usr/local/bin:/usr/bin:/bin
LD_LIBRARY_PATH: /app/packages/lib
LUA_CPATH: ./?.so;/app/packages/lib/lua/5.1/?.so
LUA_PATH: ./?.lua;/app/packages/share/lua/5.1/?.lua;/app/packages/share/lua/5.1/?/init.lua
STACK: $STACK
EOF