Skip to content

Commit

Permalink
Build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
danyi1212 committed Apr 23, 2021
1 parent 9d9c076 commit dc3c1d6
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -302,4 +302,6 @@ $RECYCLE.BIN/
# Windows shortcuts
*.lnk

# End of https://www.gitignore.io/api/venv,python,django,pycharm,windows
# End of https://www.gitignore.io/api/venv,python,django,pycharm,windows

build
8 changes: 8 additions & 0 deletions build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
mkdir build
tar -cvzf build/project.tar.gz ./project_template
tar -cvzf build/app.tar.gz ./app_template

if not exist ./venv virtualenv venv
call ./venv/Scripts/activate.bat
pip install django ipython django-debug-toolbar django-cors-headers django-simple-history django-background-tasks djangorestframework django-filter drf-yasg djangorestframework-simplejwt drf-access-policy
pip freeze > build/requirements.txt
8 changes: 8 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
mkdir build
tar -cvzf build/project.tar.gz ./project_template
tar -cvzf build/app.tar.gz ./app_template

[[ -d ./venv ]] || virtualenv venv
./venv/Scripts/activate
pip install django ipython django-debug-toolbar django-cors-headers django-simple-history django-background-tasks djangorestframwrork django-filter drf-yasg djangorestframework-simplejwt drf-access-policy
pip freeze > build/requirements.txt

0 comments on commit dc3c1d6

Please sign in to comment.