Skip to content

lapakiosstore/circleci-demo-ruby-rails

 
 

Repository files navigation

CircleCI Demo Application: Ruby on Rails CircleCI

This is an example application showcasing how to run a Ruby on Rails app on CircleCI 2.0.

You can follow along with this project by reading the documentation.

Local Development

set environment

  1. Create your app.env file from the example file: cp .env.app.testing app.env
POSTGRES_HOST=db
PGUSER=postgres
PGPASSWORD=postgres
RAILS_ENV=development
  1. Create your db.env file from the example file: cp .env.db.testing db.env
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_DB=rails_blog_dev

Starting the application

$ docker-compose build
$ docker-compose up
$ docker-compose run web bundle exec rails db:migrate:reset

reset the database

$ docker-compose up db
$ docker-compose run web bundle exec rails db:migrate:reset

Navigate to http://localhost:3000

License

Copyright (c) 2019 CircleCI

Distributed under the MIT License. See the file COPYING.

About

A CircleCI demo project using Ruby and Rails

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 80.0%
  • HTML 12.7%
  • SCSS 2.4%
  • JavaScript 1.9%
  • CSS 1.2%
  • Dockerfile 0.8%
  • Other 1.0%