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
ab724138
Commit
ab724138
authored
8 years ago
by
Kenneth Reitz
Browse files
Options
Downloads
Patches
Plain Diff
another approach
parent
f8a17611
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
+4
-6
4 additions, 6 deletions
bin/compile
with
4 additions
and
6 deletions
bin/compile
+
4
−
6
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
...
...
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