Closed troddick closed 6 years ago
Can I get a status on this or an estimated date of completion? Maybe some kind of response that it was even read yet.. :) Was I supposed to add a label or anything?
Thanks
We just need to replace the current virtual directory with a physical directory, then you can deploy your code there. Let me know when you're available and we can do this together.
Alternately, we could hack the S3 URL rewrite rules.
https://stackoverflow.com/questions/42059850/angular-2-and-aws-routes-not-found https://keita.blog/2015/11/24/hosting-a-single-page-app-on-s3-with-proper-urls/
OK. hacking the s3 would probably be the better route, as I'm sure we will have other apps like this. Is this something I could do, or you would do? Could we try it in a different location than the production, just in case, so we don't break it?
I can do it. Let's test it in the test.wim.usgs.gov bucket. Could you upload your app to a new folder in that bucket?
yes. Should I put the web.config file in there also?
Not if contains any credentials. Email it to me instead.
No, the web.config is what is handling the rewrite rules for the angular routes. Nothing protected in there. But if you are doing the same thing in hacking s3, then maybe it's not needed. Looks like:
I'm out for the day. I did add the project to s3, in the test folder, called it 'STNPublicInfo'. I did not add the web.config though. I can do that in the morning, if you need it.
Thanks
No activity for months, assumed resolved.
Hey Aaron,
I refactored stnpublicinfo from angularJS to ang4. It now needs to live on Toad and not in s3 because it has a url with parameters directly added from the onset ( .../STNPublicInfo/HWMPage?Site=20587&HWM=23715 ) as it's being called from fev. If you recall, I had this same issue with the Services Documentation app, where a user is forced to go to the root to get access and then add the parameters, which won't work for these apps. The only solution was to have it on Toad. So, right now the old version is in s3. I need to delete that, and create it on Toad. Does anything need to be done from an infrastructure point of view to accomplish this? I would put it in the stn folder, so it would need to be stn.wim.usgs.gov/stnpublicinfo....
Thanks! T