mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-21 21:47:17 +00:00
* add dockerfile for try tooljet setup * update npm scripts and logged messages * refactor npm scripts for dist folder scripts * update usages of db setup and seed * setup script to init db and boot app * fix dockerfile * update dockerfile * user production.Dockerfile as base image * fix script * fix script exit * fix lint
28 lines
753 B
Bash
Executable file
28 lines
753 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
echo "Initializing database.."
|
|
echo "This may take a couple of minutes"
|
|
echo -ne " (0%)\r"
|
|
npm run db:create:prod --silent 1> /dev/null
|
|
echo -ne "##### (33%)\r"
|
|
npm run db:migrate:prod --silent 1> /dev/null
|
|
echo -ne "############# (66%)\r"
|
|
npm run db:seed:prod --silent
|
|
echo -ne "####################### (100%)\r"
|
|
echo -ne "\n\n"
|
|
|
|
|
|
echo "
|
|
_____ _ ___ _
|
|
|_ _| | | |_ | | |
|
|
| | ___ ___ | | | | ___| |_
|
|
| |/ _ \ / _ \| | | |/ _ \ __|
|
|
| | (_) | (_) | /\__/ / __/ |_
|
|
\_/\___/ \___/|_\____/ \___|\__|
|
|
|
|
Everything you need to build internal tools!
|
|
GitHub: https://github.com/ToolJet/ToolJet
|
|
"
|
|
|
|
npm run start:prod --silent
|