N
Novu15mo ago
starsend

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
No description
10 Replies
Pawan Jain
Pawan Jain15mo ago
hi @.starsend Please try with this env variable value NODE_ENV=production
starsend
starsendOP15mo ago
ah gotcha
starsend
starsendOP15mo ago
tried that still getting nothing
No description
starsend
starsendOP15mo ago
@Pawan Jain anything else I can tweak?
Toufiq
Toufiq15mo ago
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
Pawan Jain
Pawan Jain15mo ago
@.starsend checkout this message for example env variables https://discord.com/channels/895029566685462578/1148549187244412988/1148982245521100831
starsend
starsendOP15mo ago
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?
Novu_Bot
Novu_Bot15mo ago
@.starsend, you just advanced to level 1!
Pawan Jain
Pawan Jain15mo ago
No, it is not required
starsend
starsendOP15mo ago
ah, okay, so it panicked and then it was fine nice I am finally in thanks mate
Want results from more Discord servers?
Add your server