Forem Creators and Builders 🌱

Discussion on: Questions regarding docker-compose installation

Collapse
 
jamie profile image
Jamie Gaskins

@karvounis This sounds like a mismatch in the host:port combo specified APP_DOMAIN environment variable and the Host header of the POST request. For local development, APP_DOMAIN should be localhost:3000 and APP_PROTOCOL should be http://.

Collapse
 
karvounis profile image
karvounis

Hey @jamie thanks for your comment! This is the environment variables I use for the rails service:

    environment:
      RAILS_ENV: development
      DATABASE_URL: postgresql://forem:forem@db:5432/PracticalDeveloper_development
      DATABASE_URL_TEST: postgresql://forem:forem@testdb:5432/Forem_test
      REDIS_SESSIONS_URL: redis://redis:6379
      REDIS_SIDEKIQ_URL: redis://redis:6379
      REDIS_URL: redis://redis:6379
      RACK_TIMEOUT_WAIT_TIMEOUT: 10000
      RACK_TIMEOUT_SERVICE_TIMEOUT: 10000
      STATEMENT_TIMEOUT: 10000
      APP_DOMAIN: localhost:3000
      APP_PROTOCOL: http://
Enter fullscreen mode Exit fullscreen mode

However, I still get the blank onboarding page and the articles disappear when I login with the admin credentials.

Is there a way to create a new user or reuse the credentials for the seeded test users?

Collapse
 
karvounis profile image
karvounis • Edited

I also get a lot of errors in the console that I do not know how to interpret. I executed bin/container-setup to first initialize Forem
forem.dev/remoteimages/uploads/art...

Thread Thread
 
karvounis profile image
karvounis

I also get a lot of errors like

rails_1      | ActionController::RoutingError (No route matches [GET] "/packs/js/Onboarding-892405e339067286e1f6.chunk.js"):
Enter fullscreen mode Exit fullscreen mode

I guess that somehow the necessary javascript code is not found or is not properly built