Skip to content

Chapter V: All Aboard

Prerequisites

Before proceeding, make sure you have the following:

Saving Your Progress

At this point, it's time to to commit any changes you've made to Git and push them to GitHub.

git add -A && git commit -m "{COMMIT_MESSAGE}" # (1)!
git push -u origin main
  1. Replace {COMMIT_MESSAGE} with a commit message.

Open the Commit window (Ctrl + K / Cmd + K), select the files you want to commit, and enter a commit message. Then, click Commit and Push > Push.

Open the Source Control tab (Ctrl + Shift + G / Cmd + Shift + G), select the files you want to commit, and enter a commit message, then press Ctrl + Enter / Cmd + Enter to make a commit. Then, open the ... menu and click Push.

Deploying to Railway

Provisioning a Database

Open the Railway dashboard and click New Project, then click Provision PostgreSQL.

Linking Your Doppler Project again

Create a new Railway API Token and copy it to your clipboard.

Then, open up the Doppler dashboard to the project you created for 3515.games, this time using the prd config. In the Integrations tab, click + Add Sync and select Railway. Name your token whatever you want, then paste it into the API Token... field and click Connect.

Configure the settings on the next screen as follows:

  • Railway Project: The one you just created.
  • Railway Environment: Leave as is.
  • Config to sync: prd
  • Import Options: Import, Preferring Doppler

Now head back to your Railway project and click New. Select GitHub Repo, then select your fork of 3515.games.

...and that's it! Railway will build and deploy 3515.games using the Dockerfile at your repository's root.