-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstartup.sh
More file actions
executable file
·28 lines (21 loc) · 901 Bytes
/
Copy pathstartup.sh
File metadata and controls
executable file
·28 lines (21 loc) · 901 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# TODO: Note - This is the original (commented out) version of startup.sh from PP1 (as reference)
# #!/bin/bash
# cd scriptorium
# npm install
# npx prisma migrate dev
# npx prisma generate
# node createAdmin.js
#!/bin/bash
# Step 1: Set up your environment (navigate to the scriptorium directory, install dependencies, etc.)
cd scriptorium
# Install necessary npm packages
npm install
# Run Prisma migrations and generate the Prisma client
npx prisma migrate dev
npx prisma generate
# Create the admin user (if applicable)
node createAdmin.js
cp startup.env .env
# Start up Docker containers
# Note: Even thought the docker containers are in the docker folder, we're still running them in the current directory
docker-compose -f docker/docker-compose.yml -p scriptorium_docker_containers up --build -d # -d means to run the containers in detatched mode (frees the terminal to do other things)