diff --git a/src/docs/guides/rails.md b/src/docs/guides/rails.md index 0f4031b70..3448fc9ef 100644 --- a/src/docs/guides/rails.md +++ b/src/docs/guides/rails.md @@ -153,12 +153,9 @@ To deploy the Rails app to Railway, start by pushing the app to a GitHub repo. O - Go to your app service **Variables** section and add the following: - `DATABASE_URL`: Set the value to `${{Postgres.DATABASE_URL}}` (this references the URL of your new Postgres database). Learn more about [referencing service variables](/guides/variables#referencing-another-services-variable). - Use the **Raw Editor** to add any other required environment variables in one go. -7. **Prepare Database and Start Server**: - - Go to your app service **Settings** section. - - In the **Deploy** section, set `bin/rails db:prepare && bin/rails server -b ::` as the **Custom Start Command**. This command will run your database migrations and start the server. -8. **Redeploy the Service**: +7. **Redeploy the Service**: - Click **Deploy** on the Railway dashboard to apply your changes. -9. **Verify the Deployment**: +8. **Verify the Deployment**: - Once the deployment completes, go to **View logs** to check if the server is running successfully. **Note:** During the deployment process, Railway will automatically [detect that it’s a Rails app](https://nixpacks.com/docs/providers/ruby). @@ -410,4 +407,4 @@ This setup gives you the flexibility to run different processes from the same co Explore these resources to learn how you can maximize your experience with Railway: - [Monitoring](/guides/monitoring) -- [Deployments](/guides/deployments) \ No newline at end of file +- [Deployments](/guides/deployments)