Deploying on Railway
Let's setup a simple web server on Railway using Docker.
Create repository
Create a new GitHub repository.
Clone the repository locally. Then run:
bash
pnpm create svarta-app --forcepnpm create svarta-app --forcebash
yarn create svarta-app --forceyarn create svarta-app --forcebash
npm create svarta-app --forcenpm create svarta-app --forceEnter the repository folder as the project folder.
Then, push the changes to GitHub.
bash
cd <project-folder>
git add .
git commit -m "init"
git pushcd <project-folder>
git add .
git commit -m "init"
git pushDeploy to Railway
First, make sure your changes are pushed to GitHub. Then:
create a new project (https://railway.app/new), select
Deploy from GitHub repo.select your GitHub repository and click
Deploy now.
Your app should build now. To view it online, go to Settings and generate a domain. After a couple of seconds, your app should be reachable under that URL.