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
20249f96
Commit
20249f96
authored
May 30, 2012
by
Kenneth Reitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MANAGE_FILE
parent
8b55e73f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
release
bin/release
+1
-1
collectstatic
bin/steps/django/collectstatic
+4
-6
init
bin/steps/django/init
+3
-1
No files found.
bin/release
View file @
20249f96
...
@@ -21,7 +21,7 @@ EOF
...
@@ -21,7 +21,7 @@ EOF
[
"
$NAME
"
=
"Python/Django"
]
||
exit
0
[
"
$NAME
"
=
"Python/Django"
]
||
exit
0
MANAGE_FILE
=
$(
cd
$BUILD_DIR
&&
find
.
-maxdepth
2
-type
f
-name
'manage.py'
|
head
-1
)
MANAGE_FILE
=
$(
cd
$BUILD_DIR
&&
find
.
-maxdepth
3
-type
f
-name
'manage.py'
|
head
-1
)
MANAGE_FILE
=
${
MANAGE_FILE
:2
}
MANAGE_FILE
=
${
MANAGE_FILE
:2
}
PROJECT
=
$(
dirname
$MANAGE_FILE
)
PROJECT
=
$(
dirname
$MANAGE_FILE
)
...
...
bin/steps/django/collectstatic
View file @
20249f96
...
@@ -3,17 +3,17 @@
...
@@ -3,17 +3,17 @@
set
+e
set
+e
# Check if collectstatic is configured.
# Check if collectstatic is configured.
python
$
PROJECT
/manage.py
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
if
[
!
"
$SILENCE_COLLECTSTATIC
"
]
;
then
set
-e
set
-e
fi
fi
# Compile assets if collectstatic appears to be .
# Compile assets if collectstatic appears to be
kosher
.
if
[
"
$RUN_COLLECTSTATIC
"
]
;
then
if
[
"
$RUN_COLLECTSTATIC
"
]
;
then
echo
"-----> Collecting static files"
echo
"-----> Collecting static files"
python
$
PROJECT
/manage.py
collectstatic
--noinput
--verbosity
=
0 | indent
python
$
MANAGE_FILE
collectstatic
--noinput
--verbosity
=
0 | indent
[
$?
-ne
0
]
&&
{
[
$?
-ne
0
]
&&
{
echo
" ! Error running manage.py collectstatic. More info:"
echo
" ! Error running manage.py collectstatic. More info:"
...
@@ -22,6 +22,4 @@ if [ "$RUN_COLLECTSTATIC" ]; then
...
@@ -22,6 +22,4 @@ if [ "$RUN_COLLECTSTATIC" ]; then
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"
fi
fi
\ No newline at end of file
env
\ No newline at end of file
bin/steps/django/init
View file @
20249f96
...
@@ -2,13 +2,15 @@
...
@@ -2,13 +2,15 @@
SETTINGS_FILE
=
$(
find
.
-maxdepth
3
-type
f
-name
'settings.py'
|
head
-1
)
SETTINGS_FILE
=
$(
find
.
-maxdepth
3
-type
f
-name
'settings.py'
|
head
-1
)
PROJECT
=
$(
dirname
$SETTINGS_FILE
)
PROJECT
=
$(
dirname
$SETTINGS_FILE
)
MANAGE_FILE
=
$(
find
.
-maxdepth
3
-type
f
-name
'manage.py'
|
head
-1
)
MANAGE_FILE
=
${
MANAGE_FILE
:2
}
# Disable injection for new applications.
# Disable injection for new applications.
if
[
-f
.heroku/injection_disabled
]
;
then
if
[
-f
.heroku/injection_disabled
]
;
then
DISABLE_INJECTION
=
1
DISABLE_INJECTION
=
1
fi
fi
export
SETTINGS_FILE PROJECT DISABLE_INJECTION
export
SETTINGS_FILE
MANAGE_FILE
PROJECT DISABLE_INJECTION
if
[
!
"
$DISABLE_INJECTION
"
]
;
then
if
[
!
"
$DISABLE_INJECTION
"
]
;
then
source
$BIN_DIR
/steps/django/injection
source
$BIN_DIR
/steps/django/injection
...
...
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