mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-19 23:18:52 +00:00
* add placeholder values for digital ocean secrets * revise dockerfile with security updates * update postbuild script to use transpiled code * add cloud-init dependency * move cloud-init to digitalocean postbuild script * update digitalocean postbuild script
16 lines
452 B
Bash
Executable file
16 lines
452 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 && \
|
|
npm run start:prod
|
|
)
|