mirror of https://github.com/ctk-hq/ctk
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
303 B
Bash
21 lines
303 B
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
_ACTION=${ACTION:-}
|
|
_STAGE=${STAGE:-}
|
|
|
|
if [[ -z $_ACTION || -z $_STAGE ]]; then
|
|
echo 'make sure action and stage are specified'
|
|
exit 1
|
|
fi
|
|
|
|
python -m venv .env
|
|
source .env/bin/activate
|
|
pip install -r requirements.txt
|
|
pip install zappa==0.54.2
|
|
|
|
cd src
|
|
|
|
zappa ${_ACTION} ${_STAGE}
|