phiilu / mailman

Mailman is a GUI to help you manage your email accounts stored in a MySQL/MariaDB database.
MIT License
70 stars 10 forks source link

BUG: Deployment in subfolder is broken #17

Closed miili closed 6 years ago

miili commented 6 years ago

Deployed in subfolder like /mailman is not working.

Appears like the api paths in client/src/services/api.js are not mapped correctly.

phiilu commented 6 years ago

Thank you! I will have a look at this!

phiilu commented 6 years ago

Do you also get a white page? If so I have written on how to deploy Mailman in a subfolder in #19

miili commented 6 years ago

Yes, I followed that deployment guide in the README, seems to be same.

Problems was <script src=/api/....> - the subdirectory was not resolved in the resource's source. Never worked with React myself, thought i'd leave it up to you ;)

phiilu commented 6 years ago

Yeah I just realized that the API paths were not using the basename prefixes like for example: /mailman

So you got it working now?

miili commented 6 years ago

Nope, deployed it on a subdomain. Yet, would be nice to have have it in a subfolder.

On Wed, Jan 17, 2018, 18:14 Florian Kapfenberger notifications@github.com wrote:

Yeah I just realized that the API paths were not using the basename prefixes like for example: /mailman

So you got it working now?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/phiilu/mailman/issues/17#issuecomment-358375290, or mute the thread https://github.com/notifications/unsubscribe-auth/AEwvJfmC-YMZozJD1ZO0eoEbEumwANU9ks5tLip3gaJpZM4RcKEw .

phiilu commented 6 years ago

Did you use docker? If so I have updated the documentation on how to use it with a subfolder. This would be the easiest way to deploy!