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
5c91c819
Commit
5c91c819
authored
10 years ago
by
Kenneth Reitz
Browse files
Options
Downloads
Patches
Plain Diff
skip steps if $DOCKER_BUILD is present
parent
42594a47
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/compile
+21
-13
21 additions, 13 deletions
bin/compile
with
21 additions
and
13 deletions
bin/compile
+
21
−
13
View file @
5c91c819
...
@@ -66,20 +66,25 @@ source $BIN_DIR/utils
...
@@ -66,20 +66,25 @@ source $BIN_DIR/utils
APP_DIR
=
'/app'
APP_DIR
=
'/app'
TMP_APP_DIR
=
$CACHE_DIR
/tmp_app_dir
TMP_APP_DIR
=
$CACHE_DIR
/tmp_app_dir
# Copy Anvil app dir to temporary storage...
# Skip these steps for Docker.
bpwatch start anvil_appdir_stage
if
[[
!
"
$DOCKER_BUILD
"
]]
;
then
# Copy Anvil app dir to temporary storage...
bpwatch start anvil_appdir_stage
if
[
"
$SLUG_ID
"
]
;
then
if
[
"
$SLUG_ID
"
]
;
then
mkdir
-p
$TMP_APP_DIR
mkdir
-p
$TMP_APP_DIR
deep-mv
$APP_DIR
$TMP_APP_DIR
deep-mv
$APP_DIR
$TMP_APP_DIR
else
else
deep-rm
$APP_DIR
deep-rm
$APP_DIR
fi
fi
bpwatch stop anvil_appdir_stage
bpwatch stop anvil_appdir_stage
# Copy Application code in.
bpwatch start appdir_stage
deep-mv
$BUILD_DIR
$APP_DIR
bpwatch stop appdir_stage
fi
# Copy Application code in.
bpwatch start appdir_stage
deep-mv
$BUILD_DIR
$APP_DIR
bpwatch stop appdir_stage
# Set new context.
# Set new context.
BUILD_DIR
=
$APP_DIR
BUILD_DIR
=
$APP_DIR
...
@@ -205,14 +210,17 @@ bpwatch start dump_cache
...
@@ -205,14 +210,17 @@ bpwatch start dump_cache
bpwatch stop dump_cache
bpwatch stop dump_cache
# ### Fin.
# ### Fin.
bpwatch start appdir_commit
if
[[
!
"
$DOCKER_BUILD
"
]]
;
then
deep-mv
$BUILD_DIR
$ORIG_BUILD_DIR
bpwatch start appdir_commit
bpwatch stop appdir_commit
deep-mv
$BUILD_DIR
$ORIG_BUILD_DIR
bpwatch stop appdir_commit
bpwatch start anvil_appdir_commit
bpwatch start anvil_appdir_commit
if
[
"
$SLUG_ID
"
]
;
then
if
[
"
$SLUG_ID
"
]
;
then
deep-mv
$TMP_APP_DIR
$APP_DIR
deep-mv
$TMP_APP_DIR
$APP_DIR
fi
fi
bpwatch stop anvil_appdir_commit
bpwatch stop anvil_appdir_commit
bpwatch stop compile
bpwatch stop compile
fi
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