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
34418335
Commit
34418335
authored
Mar 24, 2012
by
Kenneth Reitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
manage.py detection
parent
603950ca
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
release
bin/release
+3
-2
django
bin/steps/django
+2
-0
test
bin/test
+5
-0
No files found.
bin/release
View file @
34418335
...
...
@@ -21,7 +21,8 @@ EOF
[
"
$NAME
"
=
"Python/Django"
]
||
exit
0
SETTINGS_FILE
=
$(
cd
$BUILD_DIR
&&
ls
**
/settings.py |
head
-1
)
PROJECT
=
$(
dirname
$SETTINGS_FILE
)
MANAGE_FILE
=
$(
cd
$BUILD_DIR
&&
ls
**
/manage.py |
head
-1
)
PROJECT
=
$(
dirname
$MANAGE_FILE
)
cat
<<
EOF
...
...
@@ -29,5 +30,5 @@ addons:
shared-database:5mb
default_process_types:
web: python
$
PROJECT
/manage.py
runserver 0.0.0.0:\
$PORT
--noreload
web: python
$
MANAGE_FILE
runserver 0.0.0.0:\
$PORT
--noreload
EOF
bin/steps/django
View file @
34418335
...
...
@@ -12,6 +12,8 @@
echo
"-----> Injecting Django settings..."
SETTINGS_FILE
=
$(
ls
**
/settings.py |
head
-1
)
MANAGE_FILE
=
$(
ls
**
/manage.py |
head
-1
)
PROJECT
=
$(
dirname
$SETTINGS_FILE
)
echo
"Injecting code into
$SETTINGS_FILE
to read from DATABASE_URL"
| indent
...
...
bin/test
View file @
34418335
...
...
@@ -57,6 +57,11 @@ testDetectNotPython() {
}
testCompileWithReqs
()
{
compile
"simple-requirements"
assertCapturedSuccess
}
## utils ########################################
pushd
$(
dirname
0
)
>
/dev/null
...
...
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