AWS Deploy
I deployed AWS on an ec2 box to test this out. Attached both the error and the .env file.
When I deployed I can access it locally just fine, but the problem is that I cannot register as it's trying to access localhost. What .env var should I change for that?
![No description](https://cdn.answeroverflow.com/1147300669712248953/Screenshot_2023-09-01_at_18.38.58.png)
![No description](https://cdn.answeroverflow.com/1147300670194597898/Screenshot_2023-09-01_at_18.40.17.png)
10 Replies
hi @.starsend
Please try with this env variable value
NODE_ENV=production
ah gotcha
tried that still getting nothing
![No description](https://cdn.answeroverflow.com/1148298309698592809/Screenshot_2023-09-04_at_17.47.22.png)
@Pawan Jain anything else I can tweak?
if you are running through docker you can change configuration in docker .env
you can replace all "localhost" to "<your_IP_address>"
eg. http://localhost:3000
to http://192.0.0.1:3000
in your case you can change to your ec2 IP address
@.starsend
checkout this message for example env variables
https://discord.com/channels/895029566685462578/1148549187244412988/1148982245521100831
Ah, thanks mate
@jainpawan21 that worked beautifully. Final issue - it's asking for new_relic and it's crashing. Do I really need new relic?
@.starsend, you just advanced to level 1!
No, it is not required
ah, okay, so it panicked and then it was fine
nice
I am finally in
thanks mate