Hi everyone, I am just starting with rails, and s...
# support
f
Hi everyone, I am just starting with rails, and solidus. No problem on localhost, but I don't understand why I have this error on Heroku logs : Completed 500 Internal Server Error ActiveRecord::StatementInvalid (Could not find table 'spree_stores'): app/controllers/home_controller.rb8in `index' hope someone could help me ! thanks !
j
Sounds like you have run your migrations/loaded your schema in production.
f
scuse me if i don't understand... I am really starting. You mean that i don't have to to do "heroku run rails db:migrate" ?
j
sorry, I meant "haven't" 🤦🏻‍♂️
it sounds like you have not run your migrations/loaded your schema on production
f
I did
that's why i don't understand what's going on...
j
are you sure they actually ran successfully? If they did, you'd have a spree_stores table.
f
I am sure
and the table is present in production
I, [2023-04-05T170643.931962 #2] INFO -- : Migrating to AddBccEmailToSpreeStores (20230405154569) == 20230405154569 AddBccEmailToSpreeStores: migrating ========================= -- add_column(:spree_stores, :bcc_email, :string) -> 0.0015s == 20230405154569 AddBccEmailToSpreeStores: migrated (0.0015s) ================
-- create_table("spree_stores", {force=>cascade, id=>integer}) -> 0.0008s
j
what database are you using?
f
production: <<: *default database: db/production.sqlite3
and storage cloudinary: service: Cloudinary folder: <%= Rails.env %>
j
I doubt you are actually using SQLite, as Heroku normally sets up Postgres for you.
However, if you are actually using SQLite, that would explain your problem: you can't use SQLite in production.
f
can i use postgres ?
j
Yeah, you should use Postgres.
f
I am goinna try, thank a lot Jared !
sg thumbs up 1
it works now, thanks
i am just trying to change the home page; but impossible to change the root of the store...
route