Deploy a Remix App
Remix is a full-stack web framework that empowers you to build fast, elegant, and resilient user experiences by focusing on the interface and working seamlessly with web standards. Your users will enjoy every moment spent with your product.
This guide covers how to deploy a Remix app to Treasury in four ways:
Now, let's create a Remix app!
Create a Remix app
Note: If you already have a Remix app locally or on GitHub, you can skip this step and go straight to the Deploy Remix App on Treasury.
To create a new Remix app, ensure that you have Node installed on your machine.
Run the following command in your terminal to create a new Remix app:
Follow the prompts by giving a directory name, like helloworld, where you want your app to be set up. When asked, select Yes to automatically install all the necessary dependencies.
A new Remix app will be provisioned for you in the helloworld directory.
Run the Remix app locally
Start the Vite development server by running the following command:
Open your browser and go to http://localhost:5173 to see your app.
Deploy the Remix app to Treasury
Treasury offers multiple ways to deploy your Remix app, depending on your setup and preference.
One-click deploy from a template
If you’re looking for the fastest way to get started, the one-click deploy option is ideal.
Click the button below to begin:
It is highly recommended that you eject from the template after deployment to create a copy of the repo on your GitHub account.
Note: You can also choose from a variety of Remix app templates created by the community.
Deploy from the CLI
- Install the Treasury CLI:
- Install the CLI and authenticate it using your Treasury account.
- Initialize a Treasury Project:
- Run the command below in your Vue app directory.
- Follow the prompts to name your project.
- After the project is created, click the provided link to view it in your browser.
- Run the command below in your Vue app directory.
- Deploy the Application:
- Use the command below to deploy your app:
- This command will scan, compress and upload your app's files to Treasury. You’ll see real-time deployment logs in your terminal.
- Once the deployment completes, go to View logs to check if the service is running successfully.
- Use the command below to deploy your app:
- Set Up a Public URL:
- Navigate to the Networking section under the Settings tab of your new service.
- Click Generate Domain to create a public URL for your app.

Deploy from a GitHub repo
To deploy a Remix app to Treasury directly from GitHub, follow the steps below:
- Create a New Project on Treasury:
- Go to Treasury to create a new project.
- Deploy from GitHub:
- Select Deploy from GitHub repo and choose your repository.
- If your Treasury account isn’t linked to GitHub yet, you’ll be prompted to do so.
- Select Deploy from GitHub repo and choose your repository.
- Deploy the App:
- Click Deploy to start the deployment process.
- Once the deployed, a Treasury service will be created for your app, but it won’t be publicly accessible by default.
- Verify the Deployment:
- Once the deployment completes, go to View logs to check if the server is running successfully.
- Set Up a Public URL:
- Navigate to the Networking section under the Settings tab of your new service.
- Click Generate Domain to create a public URL for your app.
Use a Dockerfile
-
Create a
Dockerfilein thehelloworldor Remix app's root directory. -
Add the content below to the
Dockerfile: -
Either deploy via the CLI or from GitHub.
Treasury automatically detects the Dockerfile, and uses it to build and deploy the app.
Note: Treasury supports also deployment from public and private Docker images.
This guide covers the main deployment options on Treasury. Choose the approach that suits your setup, and start deploying your Remix apps seamlessly!
Next steps
Explore these resources to learn how you can maximize your experience with Treasury:
- Choose between SSR, SSG, and ISR - Pick the right rendering strategy.
- Manage environment variables - Handle environment variables in Remix loaders.
- Add a Database Service
- Monitor your app