Backend
This commit is contained in:
parent
15d4e2f126
commit
edcd4dcaa0
15 changed files with 1195 additions and 82 deletions
19
crabfit-frontend/deploy.sh
Normal file
19
crabfit-frontend/deploy.sh
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
yarn build
|
||||
|
||||
cd build
|
||||
|
||||
cat > app.yaml << EOF
|
||||
runtime: nodejs12
|
||||
handlers:
|
||||
- url: /(.*\..+)$
|
||||
static_files: \1
|
||||
upload: (.*\..+)$
|
||||
|
||||
- url: /.*
|
||||
static_files: index.html
|
||||
upload: index.html
|
||||
EOF
|
||||
|
||||
gcloud app deploy --project=crabfit
|
||||
Loading…
Add table
Add a link
Reference in a new issue