Deploy to Test and Production
SampleNeeds youSetting up the Test and Production environments on your own server, with the app on your domain.
3 of 7 steps
Your turn 4
Claude Code goes on as soon as you answer.
Create a Cloudflare API token
In the Cloudflare dashboard, open My Profile, then API Tokens, and create one that can edit DNS and Cloudflare Tunnel. Then paste it below.
Paste the Cloudflare token
It goes into a file outside the project, which Claude Code uses in its commands without ever seeing it.
Which service should send the app's emails?
The app emails sign-in codes and password resets. You can change this later.
Close the server's SSH port once the tunnel works?
You will still reach the server through the tunnel and through your provider's web console.
Steps
-
Find the outside services the app needs, and their keysDone
-
Create the Test and Production environments on GitHubDone
-
Get a Linux server and share its addressYouDone
-
Create a Cloudflare API tokenYouIn progressdash.cloudflare.com
-
Install Docker and the GitHub Actions runner on the serverTo do
-
Serve the app on your domain through a Cloudflare TunnelTo do
-
Deploy to Test, then to ProductionTo do
Keep in mind
Warning
Keys and passwords never go into a chat. You paste them here, and each goes straight where it belongs without me seeing it.
Decision
One server for both environments, to keep the cost down.
Links
Activity
- Waiting for the Cloudflare token to set up the tunnel.
- Signed in to the server with the key you added, and turned password sign-in off.
- Done: Get a Linux server and share its address
- The app uses 6 outside services; 3 of them need keys from your own accounts.