Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Puchumaldito

Puchumaldito was my first Blog using Rails 4.2.1 and Ruby 2.2.1, previously deployed on Heroku.

Prerequisites

Ensure you have the following installed:

  • Ruby 2.2.1

    ruby -v

    Install using RVM or rbenv.

  • Rails 4.2.1

    rails -v

    Install using:

    gem install rails -v 4.2.1
  • Bundler

    gem install bundler -v 1.17.3
  • PostgreSQL (Required for Heroku compatibility)

    psql --version

Installation

  1. Clone the repository

    git clone <repository_url>
    cd puchumaldito
  2. Install dependencies

    bundle install
  3. Configure the database
    Edit config/database.yml and ensure PostgreSQL is configured correctly.

  4. Set up the database

    rake db:create db:migrate db:seed

Running Locally

Start the Rails server:

rails server -b 0.0.0.0 -p 3000

Visit http://localhost:3000 in your browser.

Deploying to Heroku

  1. Login to Heroku

    heroku login
  2. Create a Heroku app (if not already created)

    heroku create puchumaldito
  3. Set the buildpack for Ruby

    heroku buildpacks:set heroku/ruby
  4. Deploy the app

    git push heroku main
  5. Run database migrations on Heroku

    heroku run rake db:migrate
  6. Open the app in a browser

    heroku open

Troubleshooting

  • If Bundler fails due to old dependencies:

    bundle update
  • If PostgreSQL connection fails:
    Ensure the Heroku database is set up correctly:

    heroku addons:create heroku-postgresql:hobby-dev

Let me know if you need further refinements! 🚀

About

My first Blog app using Rails 4.2 and deployed on Heroku.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages