Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
heroku-buildpack-python
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
heroku-buildpack-python
Commits
c4ec6d33
Commit
c4ec6d33
authored
Feb 16, 2018
by
Swen Kooij
Committed by
Kenneth Reitz
Feb 16, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Account for the root not being /app (#638)
parent
1ed0a96b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
compile
bin/compile
+14
-4
No files found.
bin/compile
View file @
c4ec6d33
...
@@ -224,14 +224,24 @@ mtime "collectstatic.time" "${start}"
...
@@ -224,14 +224,24 @@ mtime "collectstatic.time" "${start}"
# Create .profile script for application runtime environment variables.
# Create .profile script for application runtime environment variables.
set_env PATH
"
\$
HOME/.heroku/python/bin:
\$
PATH"
set_env PATH
"
\$
HOME/.heroku/python/bin:
\$
PATH"
set_env PYTHONUNBUFFERED
true
set_env PYTHONUNBUFFERED
true
set_env PYTHONHOME
/app/.heroku/python
set_env PYTHONHOME
"
\$
HOME/.heroku/python"
set_env LIBRARY_PATH
"
/app/.heroku/vendor/lib:/app
/.heroku/python/lib:
\$
LIBRARY_PATH"
set_env LIBRARY_PATH
"
\$
HOME/.heroku/vendor/lib:
\$
HOME
/.heroku/python/lib:
\$
LIBRARY_PATH"
set_env LD_LIBRARY_PATH
"
/app/.heroku/vendor/lib:/app
/.heroku/python/lib:
\$
LD_LIBRARY_PATH"
set_env LD_LIBRARY_PATH
"
\$
HOME/.heroku/vendor/lib:
\$
HOME
/.heroku/python/lib:
\$
LD_LIBRARY_PATH"
set_default_env LANG en_US.UTF-8
set_default_env LANG en_US.UTF-8
set_default_env PYTHONHASHSEED random
set_default_env PYTHONHASHSEED random
set_default_env PYTHONPATH /app/
set_default_env PYTHONPATH
"
\$
HOME"
# python expects to be in /app, if at runtime, it is not, set
# up symlinks... this can occur when the subdir buildpack is used
cat
<<
EOT
>> "
$PROFILE_PATH
"
if [[ \
$HOME
!= "/app" ]]; then
mkdir -p /app/.heroku
ln -nsf "\
$HOME
/.heroku/python" /app/.heroku/python
ln -nsf "\
$HOME
/.heroku/vendor" /app/.heroku/vendor
fi
EOT
# Install sane-default script for $WEB_CONCURRENCY and $FORWARDED_ALLOW_IPS.
# Install sane-default script for $WEB_CONCURRENCY and $FORWARDED_ALLOW_IPS.
cp
"
$ROOT_DIR
/vendor/WEB_CONCURRENCY.sh"
"
$WEB_CONCURRENCY_PROFILE_PATH
"
cp
"
$ROOT_DIR
/vendor/WEB_CONCURRENCY.sh"
"
$WEB_CONCURRENCY_PROFILE_PATH
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment