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
34418335
Commit
34418335
authored
13 years ago
by
Kenneth Reitz
Browse files
Options
Downloads
Patches
Plain Diff
manage.py detection
parent
603950ca
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
+3
-2
3 additions, 2 deletions
bin/release
bin/steps/django
+2
-0
2 additions, 0 deletions
bin/steps/django
bin/test
+5
-0
5 additions, 0 deletions
bin/test
with
10 additions
and
2 deletions
bin/release
+
3
−
2
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
This diff is collapsed.
Click to expand it.
bin/steps/django
+
2
−
0
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
...
...
This diff is collapsed.
Click to expand it.
bin/test
+
5
−
0
View file @
34418335
...
...
@@ -57,6 +57,11 @@ testDetectNotPython() {
}
testCompileWithReqs
()
{
compile
"simple-requirements"
assertCapturedSuccess
}
## utils ########################################
pushd
$(
dirname
0
)
>
/dev/null
...
...
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