You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I'm just getting started with Lookbook, so apologies if this is a silly question. But is there a way to use Lookbook with the test fixtures in the test database? I think I assumed it would use the test database because the previews live in the test/ directory, but I realized that since it's hosted as part of the development application it's actually loading my development database records. I figured if we want repeatable previews it'd be better to use the test database but I don't know if there's a way to do that.
I suppose one way might be to boot the app with RAILS_ENV=test, hmm... but that requires a separate server. But maybe that's the best/only way, because otherwise it would involve the dev environment loading the test database.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi! I'm just getting started with Lookbook, so apologies if this is a silly question. But is there a way to use Lookbook with the test fixtures in the test database? I think I assumed it would use the test database because the previews live in the
test/
directory, but I realized that since it's hosted as part of the development application it's actually loading my development database records. I figured if we want repeatable previews it'd be better to use the test database but I don't know if there's a way to do that.I suppose one way might be to boot the app with
RAILS_ENV=test
, hmm... but that requires a separate server. But maybe that's the best/only way, because otherwise it would involve the dev environment loading the test database.Appreciate any pointers in this matter!
Beta Was this translation helpful? Give feedback.
All reactions