From 516feb2cd4975f546136395b54d97988018ad91a Mon Sep 17 00:00:00 2001 From: Devon Mackay Date: Fri, 6 Jul 2018 13:18:51 -0400 Subject: [PATCH] Add script that runs all the setup commands --- script/include/run_setup | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 script/include/run_setup diff --git a/script/include/run_setup b/script/include/run_setup new file mode 100755 index 00000000..b9240644 --- /dev/null +++ b/script/include/run_setup @@ -0,0 +1,24 @@ +# include/setup: Set up application for the first time after cloning, or set it +# back to the initial first unused state. + +# If CREATE_VENV is not set, set it to "true" +if [ -z "${CREATE_VENV+is_set}" ]; then + CREATE_VENV="true" +fi + +# If INSTALL_SASS is not set, set it to "false" +if [ -z "${INSTALL_SASS+is_set}" ]; then + INSTALL_SASS="false" +fi + +if [ "${CREATE_VENV}" = "true" ]; then + install_pipenv + create_virtual_environment +fi + +if [ "${INSTALL_SASS}" = "true" ]; then + install_sass +fi + +# Install application dependencies +source ./script/bootstrap