Table of Contents | ||
---|---|---|
|
Initialize the
...
Django Project
Create a gitlab repo
Create a blank git project on a gitlab server that will hold the django project. It is helpful to have this git repo created prior to initializing the project, so that the django project can be created directly into the repo instead of having to initialize and link the git repo after the django project is created, which tends to be more difficult.
...
Create new branch
initialize
. The project access token is not permitted to push tomain
branch.Code Block git branch initialize git checkout initialize git push --set-upstream origin initialize
Commit the initial files created by django for the project.
Code Block git add . git commit -m "Initialize django project." git push
Merge the
initialize
branch intomain
branch.
Build Run-time Environment
Create Dockerfile
Add gitlab deploy key.
Modify ALLOWED_HOSTS.