remult / crm-demo

MIT License
26 stars 7 forks source link

app get stopped when deploying #5

Open vanderleisp opened 3 weeks ago

vanderleisp commented 3 weeks ago

I tested it running it locally on my notebook, and then during the auth process it shows like some tips on names to use for the authentication process, and then can get in and use it. but then either deploying on Cloudflare or Netlify the app get stuck at the login page, and trying to use same names that were used on local installation it didn´t work, so any help on how to bypass this, or which password/name was used ? My programming skills are very low, so trying to read the auth files here, but still no success.

noam-honig commented 3 weeks ago
  1. Make sure you're deploying it as a node js application - and not a static file.
  2. the auth process requires an environment variable called TOKEN_SIGN_KEY that is set with a randon string - any hosting that can run nodejs gives you some ui on how to set environment variables.

Here are some instructions on how to deploy to railway, they'll give you some direction: https://remult.dev/tutorials/react/deployment