This project illustrates an issue with Angular apps deployed using Dokku. Once the app loads the first time, manually entering a URL and attempting to navigate to it will always result in the nginx 404 page.
- Clone the project.
cd
into the project directory.- Add your remote
git remote add dokku dokku@yoursite.com:example
- Run
git push dokku master
- Navigate to example.yoursite.com. Notice how the page loads fine
- Reload the browser and view the nginx 404 page.
- Alternatively the app has two routes:
/home
and/about
. Attempt to navigate to a URL directly E.G.http://example.yoursite.com/about
and view the nginx 404 page
You can view this issue (#3608) in the Dokku Github repo: dokku/dokku#3608