mirror of https://github.com/sussy-code/docs.git
Add Railway deployment method for proxy and backend
This commit is contained in:
parent
8dc2c38bae
commit
3d76900496
|
@ -52,7 +52,22 @@ Cloudflare has a generous free plan, so you don't need to pay anything unless yo
|
||||||
1. Your worker is now deployed! You can click the back button in the top left to take you back to the summary screen.
|
1. Your worker is now deployed! You can click the back button in the top left to take you back to the summary screen.
|
||||||
1. On the summary screen, your worker link will be displayed under `Preview`. Right click the link, click `Copy link address` and save the link somewhere - you will need it to set up the client!
|
1. On the summary screen, your worker link will be displayed under `Preview`. Right click the link, click `Copy link address` and save the link somewhere - you will need it to set up the client!
|
||||||
|
|
||||||
## Method 2 - Docker
|
## Method 2 - Railway (Easy)
|
||||||
|
|
||||||
|
Railway offers you $5 of credit once you verify your account, which is enough to run the proxy for around 5-7 months.
|
||||||
|
|
||||||
|
[![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/template/dyYHq1)
|
||||||
|
|
||||||
|
1. Login to your [Railway](https://railway.app) account if you have one, otherwise create one [here](https://railway.app/login).
|
||||||
|
1. If you are signing up, then verify your account by clicking the link in the email Railway sends you.
|
||||||
|
1. If you created your account with an email, then to verify your account further, go to your account, then plans and verify your account with a GitHub account.
|
||||||
|
1. Click the [`Deploy on Railway`](https://railway.app/template/dyYHq1) button above.
|
||||||
|
1. If a `Configure` button is displayed, click on it and allow Railway to access your GitHub account.
|
||||||
|
1. The `Deploy` button at the bottom of the template should be active, click on it.
|
||||||
|
1. Once the proxy has deployed, copy the URL from the `Deployments` page.
|
||||||
|
1. Congratulations! You have deployed the proxy, you can now set up the client.
|
||||||
|
|
||||||
|
## Method 3 - Docker
|
||||||
|
|
||||||
::alert{type="warning"}
|
::alert{type="warning"}
|
||||||
Experience with Docker, domains and web hosting is **highly recommended** for this method. <br />
|
Experience with Docker, domains and web hosting is **highly recommended** for this method. <br />
|
||||||
|
|
|
@ -32,3 +32,19 @@ docker run \
|
||||||
```
|
```
|
||||||
|
|
||||||
After running that command, your backend [_should_](../1.self-hosting/4.troubleshooting.md) now be available on `localhost:80`. if you want to be able to connect to the backend outside of your local network (for example sharing it with your friends), then you'll need set up to port forwarding.
|
After running that command, your backend [_should_](../1.self-hosting/4.troubleshooting.md) now be available on `localhost:80`. if you want to be able to connect to the backend outside of your local network (for example sharing it with your friends), then you'll need set up to port forwarding.
|
||||||
|
|
||||||
|
## Method 2 - Railway (Easy)
|
||||||
|
|
||||||
|
Railway offers you $5 of credit once you verify your account, which is enough to run the backend for around 5 months (~$0.90 per month).
|
||||||
|
|
||||||
|
[![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/template/TS4mw5)
|
||||||
|
|
||||||
|
1. Login to your [Railway](https://railway.app) account if you have one, otherwise create one [here](https://railway.app/login).
|
||||||
|
1. If you are signing up, then verify your account by clicking the link in the email Railway sends you.
|
||||||
|
1. If you created your account with an email, then to verify your account further, go to your account, then plans and verify your account with a GitHub account.
|
||||||
|
1. Click the [`Deploy on Railway`](https://railway.app/template/TS4mw5) button above.
|
||||||
|
1. If a `Configure` button is displayed, click on it and allow Railway to access your GitHub account.
|
||||||
|
1. Fill in the required variables or change the default values.
|
||||||
|
1. The `Deploy` button at the bottom of the template should be active, click on it.
|
||||||
|
1. Once the `Backend` service has deployed, copy the URL from the `Deployments` page. (Might take a second for it to be available after the service has deployed)
|
||||||
|
1. Congratulations! You have deployed the backend, you can now [set up the client](../1.self-hosting/2.use-backend.md).
|
||||||
|
|
Loading…
Reference in New Issue