Skip to content

Instantly share code, notes, and snippets.

@conradwt
Created June 20, 2018 06:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save conradwt/1cdffd99e18a8ceb78450143e6e6ed08 to your computer and use it in GitHub Desktop.
Save conradwt/1cdffd99e18a8ceb78450143e6e6ed08 to your computer and use it in GitHub Desktop.
Seeding Database
Error in db/seeds.cr:1: while requiring "../config/application.cr"
require "../config/application.cr"
^
in config/application.cr:1: while requiring "./initializers/**"
require "./initializers/**"
^
in config/initializers/database.cr:1: while requiring "granite/adapter/postgresql": can't find file 'granite/adapter/postgresql'
If you're trying to require a shard:
- Did you remember to run `shards install`?
- Did you make sure you're running the compiler in the same directory as your shard.yml?
require "granite/adapter/postgresql"
^
11:45:00 Database | (INFO) Seeded database
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment