Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
heroku-buildpack-static
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Python-Dev
heroku-buildpack-static
Commits
d097f3fa
Commit
d097f3fa
authored
Mar 21, 2016
by
Terence Lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
static.json is now required
parent
8909bbe5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
README.md
README.md
+1
-1
detect
bin/detect
+1
-1
No files found.
README.md
View file @
d097f3fa
...
@@ -10,7 +10,7 @@ For a guide, read the [Getting Started with Single Page Apps on Heroku](https://
...
@@ -10,7 +10,7 @@ For a guide, read the [Getting Started with Single Page Apps on Heroku](https://
*
custom
[
configuration
](
#configuration
)
*
custom
[
configuration
](
#configuration
)
## Deploying
## Deploying
The
directory structure expected is that you have a
`public_html/`
directory containing all your static assets
.
The
`static.json`
file is required to use this buildpack. This file handles all the configuration described below
.
1.
Set the app to this buildpack:
`$ heroku buildpacks:set https://github.com/hone/heroku-buildpack-static.git`
.
1.
Set the app to this buildpack:
`$ heroku buildpacks:set https://github.com/hone/heroku-buildpack-static.git`
.
2.
Deploy:
`$ git push heroku master`
2.
Deploy:
`$ git push heroku master`
...
...
bin/detect
View file @
d097f3fa
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
build_dir
=
$1
build_dir
=
$1
if
[
!
-f
"
$build_dir
/static.json"
]
&&
[
!
-d
"
$build_dir
/public_html"
]
;
then
if
[
!
-f
"
$build_dir
/static.json"
]
;
then
exit
1
exit
1
fi
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