Skip to content

Commit

Permalink
scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Jul 4, 2024
1 parent 4323623 commit 72745e8
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/backend/hard-install
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
set -e

rm -f Pipfile.lock
shopt -s extglob
rm -rf .venv/!(".gitkeep")
shopt -u extglob
pipenv install --dev
6 changes: 6 additions & 0 deletions scripts/backend/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
set -e

wget -O - https://raw.githubusercontent.com/ocadotechnology/codeforlife-workspace/main/scripts/backend/setup | bash

pipenv run python manage.py runserver localhost:8000
7 changes: 7 additions & 0 deletions scripts/backend/setup
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
set -e

pipenv install --dev
pipenv run python manage.py migrate --noinput
pipenv run python manage.py load_fixtures api
pipenv run python manage.py collectstatic --noinput --clear
7 changes: 7 additions & 0 deletions scripts/frontend/hard-install
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
set -e

rm -f yarn.lock
rm -rf node_modules
yarn cache clean codeforlife
yarn install --production=false
6 changes: 6 additions & 0 deletions scripts/frontend/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
set -e

wget -O - https://raw.githubusercontent.com/ocadotechnology/codeforlife-workspace/main/scripts/frontend/setup | bash

yarn dev
4 changes: 4 additions & 0 deletions scripts/frontend/setup
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
set -e

yarn install --production=false

0 comments on commit 72745e8

Please sign in to comment.