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
ab724138
Commit
ab724138
authored
Nov 02, 2016
by
Kenneth Reitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
another approach
parent
f8a17611
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
compile
bin/compile
+4
-6
No files found.
bin/compile
View file @
ab724138
...
...
@@ -54,6 +54,7 @@ export PATH=$PATH:$ROOT_DIR/vendor/pip-pop
[
!
"
$SLUG_ID
"
]
&&
SLUG_ID
=
"defaultslug"
[
!
"
$REQUEST_ID
"
]
&&
REQUEST_ID
=
$SLUG_ID
[
!
"
$STACK
"
]
&&
STACK
=
$DEFAULT_PYTHON_STACK
[[
$BUILD_DIR
!=
"/app"
]]
&&
SKIP_MOVE_BUILD
=
$1
# Sanitizing environment variables.
unset
GIT_DIR PYTHONHOME PYTHONPATH
...
...
@@ -78,7 +79,7 @@ APP_DIR='/app'
TMP_APP_DIR
=
$CACHE_DIR
/tmp_app_dir
# Skip these steps for Docker.
if
[[
!
"
$
DOCKER
_BUILD
"
]]
;
then
if
[[
!
"
$
SKIP_MOVE
_BUILD
"
]]
;
then
# Copy Anvil app dir to temporary storage...
bpwatch start anvil_appdir_stage
...
...
@@ -92,10 +93,7 @@ if [[ ! "$DOCKER_BUILD" ]]; then
# Copy Application code in.
bpwatch start appdir_stage
# Skip copying the code if we're already in the right spot.
if
[[
$BUILD_DIR
!=
"/app"
]]
;
then
deep-cp
$BUILD_DIR
$APP_DIR
fi
deep-cp
$BUILD_DIR
$APP_DIR
bpwatch stop appdir_stage
fi
...
...
@@ -256,7 +254,7 @@ bpwatch start dump_cache
bpwatch stop dump_cache
# Fin.
if
[[
!
"
$
DOCKER
_BUILD
"
]]
;
then
if
[[
!
"
$
SKIP_MOVE
_BUILD
"
]]
;
then
bpwatch start appdir_commit
deep-rm
$ORIG_BUILD_DIR
...
...
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