Skip to content

sh1nj1/ror_getting_started

Repository files navigation

README

🇰🇷 (한국어) | 🇬🇧 (English)

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.1

Getting Started

  • bin/rails credentials:edit - Create or edit the config/credentials.yml.enc file and config/master.key file.
  • bin/rails db:prepare - Run database migrations (default to use sqlite3)
  • bin/rails server - Start the Rails server

Deploy to AWS EC2

Deploying to Render

This application is configured for deployment on Render. To deploy:

  1. Deploy to Render

  2. You'll need to set the following environment variables in Render:

    • RAILS_MASTER_KEY: Copy from your local config/master.key file
    • DEFAULT_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.

  3. 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.

About

Codes for Ruby on Rails getting started doc

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors