https://github.com/kul1/j1
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kul1/j1
- Owner: kul1
- License: mit
- Created: 2022-11-09T11:13:13.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-09T11:44:50.000Z (over 2 years ago)
- Last Synced: 2025-01-29T14:12:20.141Z (4 months ago)
- Language: Ruby
- Size: 38.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# CircleCI Demo Application: Ruby on Rails [](https://circleci.com/gh/CircleCI-Public/circleci-demo-ruby-rails)
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](https://circleci.com/docs/2.0/language-ruby/).
## 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
```2. 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.
# j1