Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to publish to a non root server dir #2

Open
born2net opened this issue Dec 18, 2016 · 2 comments
Open

unable to publish to a non root server dir #2

born2net opened this issue Dec 18, 2016 · 2 comments

Comments

@born2net
Copy link

born2net commented Dec 18, 2016

I was wondering if you can assist.
I am trying to publish the project to a node server which resides in a path that is non root.
In other words:
https://secure.digitalsignage.com/poke/ (poke dir)
as you cam see, I get no assets
I did publish with:

ng build --target=production --base-href ./
ng build --target=production --base-href /poke
ng build --target=production --base-href /poke/
ng build --target=production --base-href ./poke
with no luck
and you can clearly see the error in dev tools.

by the way you can clearly see that it is able to load the app just fine, but not able to load the: https://secure.digitalsignage.com/manifest.json Failed to load resource: the server responded with a status of 404 (Not Found), so I am not sure why it is trying the manifest from the root?

I was wondering if you have any ideas on how to host in a non root node server dir,

great project by the way,

regards

Sean

@born2net
Copy link
Author

I was able to fix most of the issues by change paths manually inside service-worker.js
next I need to figure out how service-worker.js is being built...
one thing I am still not sure about is why when I add to home in Android, I still see the URL nav bar?
any ideas?

@born2net
Copy link
Author

I wonder if there is a way to automaitcally change all paths to be ./
in service-worker.js ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant