Giter Site home page Giter Site logo

classicvalues / circleci-demo-ruby-rails Goto Github PK

View Code? Open in Web Editor NEW

This project forked from circleci-public/circleci-demo-ruby-rails

1.0 1.0 0.0 92 KB

A CircleCI demo project using Ruby and Rails

Home Page: https://circleci.com/gh/CircleCI-Public/circleci-demo-ruby-rails

License: MIT License

Ruby 78.49% JavaScript 2.08% CoffeeScript 0.76% CSS 1.27% HTML 13.60% Dockerfile 0.82% Shell 0.36% SCSS 2.62%

circleci-demo-ruby-rails's Introduction

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 using 2.1 configuration.

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.

circleci-demo-ruby-rails's People

Contributors

ganezasan avatar sphericalham avatar smart-alek avatar lanzhiheng avatar nbialostosky avatar bytesguy avatar dsayling avatar jasonsouza avatar drazisil avatar kyletryon avatar michelle-luna avatar dependabot[bot] avatar jkzilla avatar

Stargazers

Classic Values avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.