0

Set up a Laravel project on Codespaces using the Laravel Sail docker-compose.yml file. I am running ./vendor/bin/sail up to start the Docker containers. Says app is now running at 0.0.0.0:80,

When I go to the forwarded ports tab and attempt preview of port 80 - it goes to the home page but:

  1. The assets(css and js) are not loading
  2. When I attempt login, it redirects to localhost/login instead of the local address/login

I have already set the APP_URL in .env to the preview address at the forwarded ports tab.

I highly suspect this could be a url related issue. I could be wrong.

Any ideas on how I could resolve these two issues?

Thanks.

watkib
  • 347
  • 3
  • 11
  • 25

0 Answers0