Skip to content

Commit 3f0e131

Browse files
committed
centralize scripts
1 parent cf453eb commit 3f0e131

File tree

3 files changed

+6
-17
lines changed

3 files changed

+6
-17
lines changed

scripts/hard-install

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
#!/bin/bash
22
set -e
33

4-
cd "${BASH_SOURCE%/*}"
4+
cd "${BASH_SOURCE%/*}/.."
55

6-
rm -f ../Pipfile.lock
7-
shopt -s extglob
8-
rm -rf ../.venv/!(".gitkeep")
9-
shopt -u extglob
10-
pipenv install --dev
6+
wget -O - https://raw.githubusercontent.com/ocadotechnology/codeforlife-workspace/main/scripts/backend/hard-install | bash

scripts/run

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#!/bin/bash
22
set -e
33

4-
cd "${BASH_SOURCE%/*}"
4+
cd "${BASH_SOURCE%/*}/.."
55

6-
source ./setup
7-
8-
pipenv run python ../manage.py runserver localhost:8000
6+
wget -O - https://raw.githubusercontent.com/ocadotechnology/codeforlife-workspace/main/scripts/backend/run | SERVICE_NAME=replace-me bash

scripts/setup

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
#!/bin/bash
22
set -e
33

4-
# cd "${BASH_SOURCE%/*}/.."
4+
cd "${BASH_SOURCE%/*}/.."
55

6-
pipenv install --dev
7-
pipenv run python manage.py migrate --noinput
8-
pipenv run python manage.py load_fixtures api
9-
pipenv run python manage.py collectstatic --noinput --clear
10-
11-
# wget -O - https://raw.githubusercontent.com/ocadotechnology/codeforlife-template-backend/backend_template/scripts/setup | SERVICE_NAME=replace-me bash
6+
wget -O - https://raw.githubusercontent.com/ocadotechnology/codeforlife-workspace/main/scripts/backend/setup | SERVICE_NAME=replace-me bash

0 commit comments

Comments
 (0)