📖 See the Remix docs and the Remix Vite docs for details on supported features.
Run the Vite dev server:
npm run dev
First, build your app for production:
npm run build
Building Docker image:
docker build -t opchaves/remix-shadcn
Running the production docker image:
docker run --rm -p 3000:3000 -e SESSION_SECRET="s3cr3t" -e DB_PATH='./data' opchaves/remix-shadcn
Setup your environment:
cp .env.example .env
SESSION_SECRET='s3cr3t'
DB_PATH='/data' # a persistent volume
NODE_ENV='production'
Then run the app in production mode:
npm start
Now you'll need to pick a host to deploy it to.
If you're familiar with deploying Node applications, the built-in Remix app server is production-ready.
Make sure to deploy the output of npm run build
and the server
server.js
build/server
build/client
Take a look at the provided Dockerfile for further details on how to configure a production environment.