Elastic Beanstalk Deployment Issue
eb deployon AWS, the deploy is successful but when the homepage is refreshed, NodeBB returns to the original setup page for an admin account. If re-enter the admin account info and then refresh a few times, the site does come back up and no data has been lost.
Any thoughts on this issue?
Can you share more details about your setup? To my knowledge, eb is just a load balancer, right?
It sounds like you're running NodeBB on a system that doesn't allow you to persist files to disk... let me know if I am correct. In that scenario, you'll not want to save your config to file, but use environment variables instead...
nodebb is running on a EC2 instance ( linux ). the
eb deployis a CLI command that uploads to AWS and deploys the latest code. My config.json file on the EC2 instance is not overriden. The only effect is that when I reload the homepage, it shows the initial setup admin user page.
The only effect is that when I reload the homepage, it shows the initial setup admin user page.
Yes, that's what I mean... if you're seeing the initial set page (the orange one), then it means NodeBB restarted, didn't find
config.json, and thus kickstarted the web install process.