Comments (3)
What command did you use to initialize the project? bin/setup
? This command should have created the database locally and populated it.
Otherwise, to set up the DB:
rails db:migrate:reset
rails db:seed
I recommend running bin/setup
from the project root though
from spree_starter.
Ok, put a little more effort into it and found this:
http://stackoverflow.com/questions/17933522/postgres-on-rails-fatal-database-does-not-exist
The accepted answer worked for me, I just needed to rake db:create:all
then rake db:migrate
and it seems to have done the trick.
Perhaps if that command isn't in bin/setup
I should create a PR to add it?
from spree_starter.
Yep, I used bin/setup
, and tried both those commands already. Same error each time:
rails aborted!
ActiveRecord::NoDatabaseError: FATAL: database "spark-starter-kit_development" does not exist
/Users/melliott/sparkSpree/spark-starter-kit/config/environment.rb:5:in `<top (required)>'
bin/rails:4:in `require'
bin/rails:4:in `<main>'
PG::ConnectionBad: FATAL: database "spark-starter-kit_development" does not exist
/Users/melliott/sparkSpree/spark-starter-kit/config/environment.rb:5:in `<top (required)>'
bin/rails:4:in `require'
bin/rails:4:in `<main>'
Tasks: TOP => db:abort_if_pending_migrations => environment
(See full trace by running task with --trace)
I'm thinking it's a Postgress problem rather than Rails but I've never had PG problems before and this seems unique to this project.
from spree_starter.
Related Issues (20)
- Docker Compose + Headless Spree + Nextjs Frontend build HOT 3
- spree_sample no images Docker HOT 2
- Installation error on Windows 11 WSL2 - PG::UndefinedTable: ERROR: relation "spree_countries" does not exist
- error in heroku
- Create Spree CLI for bootstraping an application with Rails/Vue/React storefronts
- Fix test suite on CircleCI
- Running bin/start-docker returns errors HOT 1
- Command "start-hybrid" spins up container with web app HOT 1
- Nokogiri Error on fresh install HOT 8
- We're sorry, but something went wrong. If you are the application owner check the logs for more information. HOT 1
- I finished setup but when upload logo, it always not display
- No routes working except admin HOT 1
- add code-server in docker-compose.yml
- Issues uploading images using Heroku deployment
- Please guide to run a production build for the same HOT 17
- *** stack smashing detected ***: terminated HOT 1
- "*** stack smashing detected ***: terminated" on M1 Apple Silicon HOT 4
- Fresh install gives sprocket error re: spree-dashboard.js HOT 2
- Product Form Fields Show Duplicates HOT 2
- Creating test file instead of creating spec file HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spree_starter.