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
a21dbc2d
Commit
a21dbc2d
authored
May 30, 2012
by
Kenneth Reitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
run collectstatic
parent
cf5a9d26
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
8 deletions
+20
-8
collectstatic
bin/steps/django/collectstatic
+20
-8
No files found.
bin/steps/django/collectstatic
View file @
a21dbc2d
...
...
@@ -2,13 +2,25 @@
set
+e
# Compile assets.
echo
"-----> Collecting static files"
python
$PROJECT
/manage.py collectstatic
--noinput
| indent
# Check if collectstatic is configured.
python
$PROJECT
/manage.py collectstatic
--help
&> /dev/null
&&
RUN_COLLECTSTATIC
=
true
[
$?
-ne
0
]
&&
{
echo
" ! Error running manage.py collectstatic. More info:"
echo
" ! http://devcenter.heroku.com/articles/django-assets"
}
# Don't raise errors if SILENCE_COLLECTSTATIC is set.
if
[
!
"
$SILENCE_COLLECTSTATIC
"
]]
;
then
set
-e
fi
# Compile assets if collectstatic appears to be .
if
[
"
$RUN_COLLECTSTATIC
"
]
;
then
echo
"-----> Collecting static files"
python
$PROJECT
/manage.py collectstatic
--noinput
| indent
[
$?
-ne
0
]
&&
{
echo
" ! Error running manage.py collectstatic. More info:"
echo
" http://devcenter.heroku.com/articles/django-assets"
}
else
echo
" ! Django collecstatic is not configured. Learn more:"
echo
" http://devcenter.heroku.com/articles/django-assets"
fi
set
-e
\ No newline at end of file
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