mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-06 06:48:21 +00:00
16 lines
457 B
Bash
Executable file
16 lines
457 B
Bash
Executable file
#!/bin/sh
|
|
|
|
echo $CA_CERT > ca-certificate.pem
|
|
|
|
# Dependency for digital ocean
|
|
apt-get install -y cloud-init
|
|
# 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:prod && \
|
|
npm run db:seed:prod && \
|
|
npm run start:prod
|
|
)
|