Skip to content

Commit

Permalink
setup-dotenv
Browse files Browse the repository at this point in the history
  • Loading branch information
asim3 committed Sep 4, 2023
1 parent 78dbaca commit 66a6cfc
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci_cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,5 @@ jobs:
- name: Create New Django Project
run: if [ -x ./setup/set-new-django-project.bash ]; then echo "test_project" | make init; fi;

- name: Install requirements
run: make install

- name: Run All Tests
run: make tests
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ main: run
init:
@sed -i -e 's/\r$$//' ./setup/set-new-django-project.bash
@./setup/set-new-django-project.bash
eval "make install"


venv:
Expand Down
6 changes: 3 additions & 3 deletions setup/.env.sample
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export DJANGO_DEBUG=True
export DJANGO_SECRET_KEY="abcdefghijklmnopqrstuvwxyz0123456789!@%^&*(-_=+)50"
export REST_SIGNING_KEY=rest-top-secret
DJANGO_DEBUG=True
DJANGO_SECRET_KEY="abcdefghijklmnopqrstuvwxyz0123456789!@%^&*(-_=+)50"
REST_SIGNING_KEY=rest-top-secret
15 changes: 10 additions & 5 deletions setup/set-new-django-project.bash
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,16 @@ setup-django-static() {
}


setup-dotenv() {
cp ./setup/.env.sample ./${name}/.env
mv ./setup/.env.sample ./${name}/.env.sample
}


setup-kubernetes() {
mv ./setup/Dockerfile ./
mv ./setup/docker-compose.yaml ./
mv ./setup/entrypoint.sh ./
mv ./setup/.env.sample ./.env.sample
cp ./.env.sample ./.env
mv ./setup/Dockerfile ./
mv ./setup/docker-compose.yaml ./
mv ./setup/entrypoint.sh ./
}


Expand All @@ -76,6 +80,7 @@ start-django-project
update-project-name
setup-django-settings
setup-django-static
setup-dotenv
setup-kubernetes
copy-django-apps
setup-heroku
Expand Down

0 comments on commit 66a6cfc

Please sign in to comment.