mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-21 21:47:17 +00:00
* Updated package.json to support node 18 * Updated package-lock.json with force install * Updated frontend package.json * Updated server package.json * update frontend package-lock.json * update render dockerfile * update dockerfiles for node 18 * update node version in actions * fix setup script for AMI * install using nvm * debug * source bashrc * change ami os version * change base ami * make use of ubuntu focal lts version * update script * change branch name * revert branch name * update workflow * node upgrade [plugins] modules updated (#5482) * modules updated * adds saphana and oracle package * adds saphana and oracle package * eslint rules for -unresolved and resolved properties --------- Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com> Co-authored-by: Arpit <arpitnath42@gmail.com>
46 lines
952 B
Bash
Executable file
46 lines
952 B
Bash
Executable file
#!/bin/bash
|
|
|
|
if grep __required__ .env
|
|
then
|
|
echo "Please set the required values within the .env file"
|
|
exit 1
|
|
fi
|
|
|
|
export $(grep -v '^#' .env | xargs)
|
|
|
|
if psql -d postgresql://$PG_USER:$PG_PASS@$PG_HOST/postgres -c 'select now()' > /dev/null 2>&1
|
|
then
|
|
echo "Successfully pinged the database!";
|
|
else
|
|
echo "Can't connect to the database. Kindly check the credenials provided in the .env file!"
|
|
exit 1
|
|
fi
|
|
|
|
if sudo systemctl start openresty
|
|
then
|
|
echo "Successfully started reverse proxy!"
|
|
else
|
|
echo "Failed to start reverse proxy"
|
|
exit 1
|
|
fi
|
|
|
|
if $ENABLE_TOOLJET_DB == "true"
|
|
then
|
|
if sudo systemctl start postgrest
|
|
then
|
|
echo "Successfully started PostgREST server!"
|
|
else
|
|
echo "Failed to start PostgREST server"
|
|
exit 1
|
|
fi
|
|
fi
|
|
|
|
npm --prefix server run db:setup:prod
|
|
|
|
if sudo systemctl start nest
|
|
then
|
|
echo "The app will be served at ${TOOLJET_HOST}"
|
|
else
|
|
echo "Failed to start the server!"
|
|
exit 1
|
|
fi
|