-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildspec.yml
34 lines (32 loc) · 889 Bytes
/
buildspec.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
version: 0.2
env:
variables:
DJANGO_SETTINGS_MODULE: gitblog.settings
phases:
install:
runtime-versions:
python: 3.9
commands:
- apt-get update -y
- apt-get install -y nodejs
- node --version
- npm --version
- python --version
pre_build:
commands:
- pip install -r requirements.txt
- python manage.py tailwind install
- python manage.py tailwind build
- python manage.py collectstatic --noinput
- npm install -g serverless
- serverless plugin install --name=serverless-python-requirements
- serverless plugin install --name=serverless-wsgi
- serverless plugin install --name=serverless-domain-manager
- serverless deploy --verbose
# build:
# commands:
#
post_build:
commands:
- serverless wsgi manage --command "migrate"
- echo Build completed on `date`