Hi, I'm trying to setup a development environment with Docker.
Everything is going fine but once the app is up and running, every form I try to submit receive the
I've searched github for existing issues and maybe is related to this. I've already commented in the issue giving some detail but maybe someone here has already encountered the issue.
Top comments (7)
Hey @markomannux , If you have a domain, try to follow this and let me know what is the status.
This is how I eliminated most of the issues related to
onboarding message errorsand
Hey @akhil , thanks for your hint: it put me on the right track. I had no clue hostname could be an issue.
Since I don't actually need social login, turns out the setup is even simpler.
I tried to set APP_DOMAIN with no luck but I noticed that container-compose.yml declared it as
So I added an entry in my hosts file like this
http://rails:3000(no need to change the port) and no more
Rather than modifying the host file, what about changing it in the
If I had a DNS record pointing to my environment, that would be certainly better.
For a local setup for testing purposes without DNS, I think the hosts file record is the only viable option.
Thanks @akhil ! I'll try your suggestions as soon as possible and keep you posted.
Hey, I even got a simple solution for you, this might sound a little bit awkward, but this is how it can be resolved easily.
While accessing Forem in the browser, I guess you are using: 127.0.0.1:3000
Rather than that try using: localhost:3000
I knew that your problem was resolved, but while you are installing Forem again in another VM or in VPS, there is no need of creating such a host record.
If it is a VPS, change APP_DOMAIN = a.b.c.d:3000
I think your suggestion for VPS will definetily work (I cannot try at the moment).
However I tried to access to my dev environment with localhost:3000 and still I get InvalidAuthenticityToken error. For now I will stick to the hosts entry