diff --git a/build.sh b/build.sh index fc39774..ba065e0 100755 --- a/build.sh +++ b/build.sh @@ -1,9 +1,19 @@ -#!/bin/zsh +#!/bin/bash +# REVIEW Above: bash is way more compatible than other shells # builds the latest version of the client and server -cd ../swingmusic-client -yarn build --outDir ../swingmusic/client +# REVIEW These are not useful if you dont have the source code +#cd ../swingmusic-client +#yarn build --outDir ../swingmusic/client +#../swingmusic -cd ../swingmusic +# REVIEW Cleaning up +rm -rf build dist + +# REVIEW Install poetry & requirements +pip install poetry +poetry install --no-root + +# Build the app poetry run python manage.py --build \ No newline at end of file diff --git a/dev_build.sh b/dev_build.sh new file mode 100644 index 0000000..09adbb8 --- /dev/null +++ b/dev_build.sh @@ -0,0 +1,16 @@ +#!/bin/bash +# REVIEW Above: bash is way more compatible than other shells + +# builds the latest version of the client and server + +cd ../swingmusic-client || exit # REVIEW Failsafe exit + +yarn build --outDir ../swingmusic/client +cd ../swingmusic || exit # REVIEW Failsafe exit + +# REVIEW Optional cleaning up +# rm -rf build dist + +# REVIEW Install poetry & requirements +# Build the app +poetry run python manage.py --build \ No newline at end of file