This is working codes for Ruby on Rails getting started document.
Runtime version info:
store % ruby -v
ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +PRISM [arm64-darwin24]
store % rails -v
Rails 8.0.1bin/rails credentials:edit- Create or edit theconfig/credentials.yml.encfile andconfig/master.keyfile.bin/rails db:prepare- Run database migrations (default to use sqlite3)bin/rails server- Start the Rails server
This application is configured for deployment on Render. To deploy:
-
You'll need to set the following environment variables in Render:
RAILS_MASTER_KEY: Copy from your localconfig/master.keyfileDEFAULT_USER_EMAIL: Email for the default admin user (e.g., admin@example.com)DEFAULT_USER_PASSWORD: Password for the default admin user
After clicking the deploy button, you'll be prompted to set these environment variables.
-
Click "Apply" to start the deployment
Render will automatically create both the web service and the PostgreSQL database as specified in the render.yaml configuration.