mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-21 21:47:17 +00:00
* add migration guide * add support links * Update docs for digital ocean and ec2 (#5224) * update docs for digital ocean and ec2 * update doc * update digital ocean doc and script
15 lines
429 B
Bash
Executable file
15 lines
429 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 start:prod
|
|
)
|