Deploy to production
Host your Kottster app on your server for complete control over data privacy and security.
Production build
Running npm run build
generates an optimized version of your Remix application for production. This command creates the build
directory containing the compiled code.
Cloud providers
Self-hosting
Method 1. Node.js Server
Requirements
To deploy your Remix app to a server, ensure your server has Node.js installed (version v18.20.4 or higher).
Running a server
After installing all dependencies, run a Remix server using npm run start
. By default, it will run on port 5480, but you can change it by setting up an environmental variable PORT
.
Method 2. Docker Image
Create the following Dockerfile
in the project directory:
Build your Docker image
Run docker build -t your-app-name .
in your project directory.
Deploy or Run Your Docker Container
You can now deploy this image wherever you want.
To run it locally, use the command:
docker run -d -p 5480:5480 your-app-name
This starts your app in a container, setting necessary environment variables.
Last updated