Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
heroku-buildpack-python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Evili del Rio i Silvan
heroku-buildpack-python
Commits
c4ec6d33
Commit
c4ec6d33
authored
7 years ago
by
Swen Kooij
Committed by
Kenneth Reitz
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Account for the root not being /app (#638)
parent
1ed0a96b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/compile
+14
-4
14 additions, 4 deletions
bin/compile
with
14 additions
and
4 deletions
bin/compile
+
14
−
4
View file @
c4ec6d33
...
...
@@ -224,14 +224,24 @@ mtime "collectstatic.time" "${start}"
# Create .profile script for application runtime environment variables.
set_env PATH
"
\$
HOME/.heroku/python/bin:
\$
PATH"
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 LD_LIBRARY_PATH
"
/app
/.heroku/vendor/lib:
/app
/.heroku/python/lib:
\$
LD_LIBRARY_PATH"
set_env LIBRARY_PATH
"
\$
HOME
/.heroku/vendor/lib:
\$
HOME
/.heroku/python/lib:
\$
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 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.
cp
"
$ROOT_DIR
/vendor/WEB_CONCURRENCY.sh"
"
$WEB_CONCURRENCY_PROFILE_PATH
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment