mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
* add digital ocean deploy template * update readme * fix template * update script for digital ocean ca cert * update digital ocean script * set certificat authority from env for digitalocean * fix script * add digitalocean postbuild script * update script * test * test * strip ssl mode require from env * revert testing changes
14 lines
386 B
Bash
Executable file
14 lines
386 B
Bash
Executable file
#!/bin/sh
|
|
|
|
echo $CA_CERT > ca-certificate.pem
|
|
|
|
# FIXME: Trying to connect to digital ocean managed db fails even with adding
|
|
# NODE_EXTRA_CA_CERTS and therefore removing sslmode from database url
|
|
export DATABASE_URL=${DATABASE_URL%"?sslmode=require"}
|
|
|
|
(
|
|
export NODE_EXTRA_CA_CERTS="$(pwd)/ca-certificate.pem"; \
|
|
npm run db:migrate && \
|
|
npm run db:seed && \
|
|
npm run start:prod
|
|
)
|