Skip to content

chrispat/rails-blog

Repository files navigation

Rails Blog Example

This is a Ruby on Rails blog that connects to a Railway Postgres database.

Deploy on Railway

✨ Features

  • Ruby
  • Rails
  • Postgres

πŸ’β€β™€οΈ How to use

  • Create a Railway project with the Postgres plugin
  • Connect to your Railway project with railway init
  • Install Ruby requirements bundle install
  • Install yarn bin/rails yarn:install
  • Migrate the database railway run rake db:migrate
  • Run Rails railway run bin/rails migrate

πŸ“ Notes

This app was generated with the rails new command and following the getting getting started guide. Read more about Rails on their official website

Local Dev Setup

Had to run export RAILS_ENV=test && bin/rails db:prepare in order to get my test database setup to run tests. Would be nice if this just happend when I run the test command

Testing - https://edgeapi.rubyonrails.org/classes/ActionDispatch/SystemTestCase.html

Render

https://render.com/docs/deploy-rails#update-your-app-for-render

Heroku

https://devcenter.heroku.com/articles/deploying-rails-applications-with-the-puma-web-server https://scottbartell.com/2020/01/22/automating-rails-database-migrations-on-heroku/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published