Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
site-kwei
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
mediatek
site-kwei
Commits
2012a504
Commit
2012a504
authored
4 years ago
by
Dorian Lesbre
Browse files
Options
Downloads
Patches
Plain Diff
Fix makefile
parent
c6b98c26
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+11
-8
11 additions, 8 deletions
Makefile
with
11 additions
and
8 deletions
Makefile
+
11
−
8
View file @
2012a504
...
...
@@ -2,6 +2,7 @@ SHELL := /bin/bash
PYTHON
:=
python3
MANAGER
:=
manage.py
DB
:=
db.sqlite3
SECRET
:=
interludes/secret.py
.PHONY
:
help
help
:
##
Show this help
...
...
@@ -14,19 +15,21 @@ install: ## Install requirements
.PHONY
:
secret
secret
:
##
Link the secret_example.py to secret.py (only in dev mode)
ln
-s
./interludes/secret_example.py interludes/secret.py
ln
-s
"
$(
PWD
)
/interludes/secret_example.py"
interludes/secret.py
$(SECRET)
:
secret
.PHONY
:
migrate
migrate
:
##
Make and run migrations
migrate
:
$(SECRET)
##
Make and run migrations
$(
PYTHON
)
$(
MANAGER
)
makemigrations
$(
PYTHON
)
$(
MANAGER
)
migrate
.PHONY
:
serve
serve
:
##
Run the django server
serve
:
$(SECRET)
##
Run the django server
$(
PYTHON
)
$(
MANAGER
)
runserver
.PHONY
:
host
host
:
##
Host localy to access from same netword (make sure to add IP to ALLOWED_HOSTS)
host
:
$(SECRET)
##
Host localy to access from same netword (make sure to add IP to ALLOWED_HOSTS)
$(
PYTHON
)
$(
MANAGER
)
runserver 0.0.0.0:8000
.PHONY
:
start
...
...
@@ -39,19 +42,19 @@ clean: ## Remove migrations and delete database
rm
$(
DB
)
.PHONY
:
test
test
:
##
Tests all the apps
test
:
$(SECRET)
##
Tests all the apps
$(
PYTHON
)
$(
MANAGER
)
test
.PHONY
:
adduser
adduser
:
##
Create a new superuser
adduser
:
$(SECRET)
##
Create a new superuser
$(
PYTHON
)
$(
MANAGER
)
createsuperuser
.PHONY
:
shell
shell
:
##
Run django's shell
shell
:
$(SECRET)
##
Run django's shell
$(
PYTHON
)
$(
MANAGER
)
shell
.PHONY
:
static
static
:
##
collect static files
static
:
$(SECRET)
##
collect static files
$(
PYTHON
)
$(
MANAGER
)
collectstatic
.PHONY
:
preprod
...
...
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