Skip to content

How do you start the prod server using Docker and SQLite? #2171

Answered by daniel-walz
daniel-walz asked this question in Help
Discussion options

You must be logged in to vote

I think I found the answer, I was setting up the tmp folder for the SQLite DB in the working dir (/app) in the container, not in the build folder from where I start the application after I have done a production build.

The fix was to move the creation of the tmp folder, remove the line inte the Dockerfile and add it in the start script.

start.sh

#!/bin/sh

cd build
mkdir -p tmp
node ace migration:run --force
npm run start

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@daniel-walz
Comment options

@Nithur-M
Comment options

@rakis10
Comment options

Answer selected by daniel-walz
Comment options

You must be logged in to vote
1 reply
@Nithur-M
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
4 participants