Skip to main content

Introduction

Remix is a full stack web framework that lets you focus on the user interface and work back through web standards to deliver a fast, slick, and resilient user experience. In this article, we are going to deploy a Remix application to Valyent.

Prerequisites

  • a UNIX-like system (see WSL if you are using Windows), in order to use the Valyent CLI
  • a Valyent account, with a registered payment method (you can sign up here)
  • NodeJS and NPM installed on your machine

Installing the Valyent CLI

You can inspect the installation script here and the GitHub repository.

Authenticating

Initializing the project

We can scaffold a Remix application with the following command :
Then, change directory to the newly created application :
Now, we can initialize the valyent.toml configuration file, that allows to link the local codebase, to a Valyent application :
This command will ask you to select/create a project and an associated application.

Adding the Dockerfile

Let’s add a Dockerfile so that Valyent can build a Docker image for your application.
We can fill it this way :

Adding the .dockerignore

Let’s add a .dockerignore so that Valyent so that it doesn’t send unnecessary files to the Docker build context.
We can fill it this way :

Deploy the project

To expose the application’s port, we need to set up a gateway (in this case, the port 3000):
Then, we can deploy the application :
Once the deployment is finished, type :
to see your Remix application in your browser.