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
21dd1782
Commit
21dd1782
authored
Oct 13, 2015
by
Kenneth Reitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
whitelisting
parent
beb8c705
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
compile
bin/compile
+14
-7
No files found.
bin/compile
View file @
21dd1782
...
@@ -207,26 +207,33 @@ bpwatch start post_compile
...
@@ -207,26 +207,33 @@ bpwatch start post_compile
source
$BIN_DIR
/steps/hooks/post_compile
source
$BIN_DIR
/steps/hooks/post_compile
bpwatch stop post_compile
bpwatch stop post_compile
# Store new artifacts in cache.
bpwatch start dump_cache
rm
-rf
$CACHE_DIR
/
$CACHED_DIR
cp
-R
$CACHED_DIR
$CACHE_DIR
/
bpwatch stop dump_cache
# ### Fin.
# ### Fin.
if
[[
!
"
$DOCKER_BUILD
"
]]
;
then
if
[[
!
"
$DOCKER_BUILD
"
]]
;
then
bpwatch start appdir_commit
bpwatch start appdir_commit
deep-rm
$ORIG_BUILD_DIR
deep-rm
$ORIG_BUILD_DIR
deep-
mv
$BUILD_DIR
$ORIG_BUILD_DIR
deep-
cp
$BUILD_DIR
$ORIG_BUILD_DIR
bpwatch stop appdir_commit
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-
cp
$TMP_APP_DIR
$APP_DIR
fi
fi
bpwatch stop anvil_appdir_commit
bpwatch stop anvil_appdir_commit
bpwatch stop compile
bpwatch stop compile
fi
fi
# Remove all non-whitelisted objects from cache.
cd
$CACHED_DIR
find
.
-type
f
-not
\(
-name
'python'
-or
-name
'python-version'
-or
-name
'python-stack'
-or
-name
'vendor'
-or
-name
'venv'
\)
-delete
cd
$BUILD_DIR
# Store new artifacts in cache.
bpwatch start dump_cache
rm
-rf
$CACHE_DIR
/
$CACHED_DIR
cp
-R
$CACHED_DIR
$CACHE_DIR
/
bpwatch stop dump_cache
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