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