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
5c91c819
Commit
5c91c819
authored
May 06, 2015
by
Kenneth Reitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
skip steps if $DOCKER_BUILD is present
parent
42594a47
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
13 deletions
+21
-13
compile
bin/compile
+21
-13
No files found.
bin/compile
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
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