mirror of
https://github.com/GSA/notifications-api.git
synced 2026-03-20 02:00:22 -04:00
Basic commit to add get pages showing
- bootstrap script - run script - couple of views - basic config
This commit is contained in:
30
scripts/bootstrap.sh
Executable file
30
scripts/bootstrap.sh
Executable file
@@ -0,0 +1,30 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Bootstrap virtualenv environment and postgres databases locally.
|
||||
#
|
||||
# NOTE: This script expects to be run from the project root with
|
||||
# ./scripts/bootstrap.sh
|
||||
|
||||
set -o pipefail
|
||||
|
||||
function display_result {
|
||||
RESULT=$1
|
||||
EXIT_STATUS=$2
|
||||
TEST=$3
|
||||
|
||||
if [ $RESULT -ne 0 ]; then
|
||||
echo -e "\033[31m$TEST failed\033[0m"
|
||||
exit $EXIT_STATUS
|
||||
else
|
||||
echo -e "\033[32m$TEST passed\033[0m"
|
||||
fi
|
||||
}
|
||||
|
||||
if [ ! $VIRTUAL_ENV ]; then
|
||||
virtualenv ./venv
|
||||
. ./venv/bin/activate
|
||||
fi
|
||||
|
||||
|
||||
# Install Python development dependencies
|
||||
pip3 install -r requirements_for_test.txt
|
||||
3
scripts/run_app.sh
Executable file
3
scripts/run_app.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
python application.py runserver
|
||||
Reference in New Issue
Block a user