Newbie needs a little help getting started :)


#1

Hi,

Trying my hand at CI. Been deploying to Heroku for years without CI; want to try CI as I add developers.

I use Thoughtbot’s Suspenders gem to start a new Rails app. The default circle.yml is:

database:
  override:
    - bin/setup
test:
  override:
    - COVERAGE=true bin/rake
deployment:
  staging:
    branch: master
    commands:
      - bin/deploy staging

I get the following error:

bin/setup
The Gemfile's dependencies are satisfied
Running via Spring preloader in process 26947
Created database 'familybook_test'
/home/ubuntu/familybook/db/schema.rb doesn't exist yet. Run `rails db:migrate` to create it, then try again. If you do not intend to use a database, you should instead alter /home/ubuntu/familybook/config/application.rb to limit the frameworks that will be loaded.

bin/setup returned exit code 1

Action failed: bin/setup

How do I run rails bd:migrate? Where do I put the command?

Thanks in advance.

/Hunt


#2

rails db:migrate can be run in the ‘database > override’ section. See here for more details: https://circleci.com/docs/1.0/configuration/#database


#3