Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
heroku-buildpack-nodejs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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-nodejs
Commits
0fab5a78
Commit
0fab5a78
authored
Jan 27, 2017
by
Hunter Loftis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no need to store these things in the slug
parent
493ce9f1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
compile
bin/compile
+1
-0
cache.sh
lib/cache.sh
+5
-0
No files found.
bin/compile
View file @
0fab5a78
...
@@ -164,6 +164,7 @@ cache_build() {
...
@@ -164,6 +164,7 @@ cache_build() {
save_cache_directories
"
$BUILD_DIR
"
"
$CACHE_DIR
"
$cache_directories
save_cache_directories
"
$BUILD_DIR
"
"
$CACHE_DIR
"
$cache_directories
fi
fi
save_signature
save_signature
remove_caches_from_slug
"
$BUILD_DIR
"
}
}
header
"Caching build"
header
"Caching build"
...
...
lib/cache.sh
View file @
0fab5a78
...
@@ -56,6 +56,11 @@ restore_cache_directories() {
...
@@ -56,6 +56,11 @@ restore_cache_directories() {
done
done
}
}
remove_caches_from_slug
()
{
local
build_dir
=
${
1
:-}
rm
-rf
$build_dir
/.npm
$build_dir
/.cache/yarn
}
clear_cache
()
{
clear_cache
()
{
rm
-rf
$CACHE_DIR
/node
rm
-rf
$CACHE_DIR
/node
mkdir
-p
$CACHE_DIR
/node
mkdir
-p
$CACHE_DIR
/node
...
...
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