remix-run / indie-stack

The Remix Stack for deploying to Fly with SQLite, authentication, testing, linting, formatting, etc.
https://remix.run/stacks
MIT License
1.12k stars 316 forks source link

Error: Invariant failed: SESSION_SECRET must be set #286

Closed GaneshSrambikal closed 5 months ago

GaneshSrambikal commented 5 months ago

Have you experienced this bug with the latest version of the template?

yes

Steps to Reproduce

After npx create-remix@latest --template remix-run/indie-stack blog-tutorial

and npm run dev

we expect a successful running server at 3000

Expected Behavior

Mock server running [remix-serve] http://localhost:3000 (http://172.25.160.1:3000)

remix-success-server

Actual Behavior

Error: Invariant failed: SESSION_SECRET must be set remix-error-server

This is because the repo comes with a .env.example file but .env is missing.

I have read issue in issue#71 in grunge-stack and this comment shares some light. It would be convenient to add a note that instructs to add a .env file after in the Blog tutorial page. remix-env

machour commented 5 months ago

You missed the setup phase as mentioned in the attached PR. Closing this issue as it's not actually a bug.