Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
heroku-buildpack-python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Evili del Rio i Silvan
heroku-buildpack-python
Commits
20249f96
Commit
20249f96
authored
13 years ago
by
Kenneth Reitz
Browse files
Options
Downloads
Patches
Plain Diff
MANAGE_FILE
parent
8b55e73f
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bin/release
+1
-1
1 addition, 1 deletion
bin/release
bin/steps/django/collectstatic
+4
-6
4 additions, 6 deletions
bin/steps/django/collectstatic
bin/steps/django/init
+3
-1
3 additions, 1 deletion
bin/steps/django/init
with
8 additions
and
8 deletions
bin/release
+
1
−
1
View file @
20249f96
...
...
@@ -21,7 +21,7 @@ EOF
[
"
$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
}
PROJECT
=
$(
dirname
$MANAGE_FILE
)
...
...
This diff is collapsed.
Click to expand it.
bin/steps/django/collectstatic
+
4
−
6
View file @
20249f96
...
...
@@ -3,17 +3,17 @@
set
+e
# 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.
if
[
!
"
$SILENCE_COLLECTSTATIC
"
]
;
then
set
-e
fi
# Compile assets if collectstatic appears to be .
# Compile assets if collectstatic appears to be
kosher
.
if
[
"
$RUN_COLLECTSTATIC
"
]
;
then
echo
"-----> Collecting static files"
python
$
PROJECT
/manage.py
collectstatic
--noinput
--verbosity
=
0 | indent
python
$
MANAGE_FILE
collectstatic
--noinput
--verbosity
=
0 | indent
[
$?
-ne
0
]
&&
{
echo
" ! Error running manage.py collectstatic. More info:"
...
...
@@ -22,6 +22,4 @@ if [ "$RUN_COLLECTSTATIC" ]; then
else
echo
" ! Django collecstatic is not configured. Learn more:"
echo
" http://devcenter.heroku.com/articles/django-assets"
fi
env
\ No newline at end of file
fi
\ No newline at end of file
This diff is collapsed.
Click to expand it.
bin/steps/django/init
+
3
−
1
View file @
20249f96
...
...
@@ -2,13 +2,15 @@
SETTINGS_FILE
=
$(
find
.
-maxdepth
3
-type
f
-name
'settings.py'
|
head
-1
)
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.
if
[
-f
.heroku/injection_disabled
]
;
then
DISABLE_INJECTION
=
1
fi
export
SETTINGS_FILE PROJECT DISABLE_INJECTION
export
SETTINGS_FILE
MANAGE_FILE
PROJECT DISABLE_INJECTION
if
[
!
"
$DISABLE_INJECTION
"
]
;
then
source
$BIN_DIR
/steps/django/injection
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment