How to deploy using Hostinger? - deployment

I got an assignment to create a simple app and to deploy it in a website.
During development I was using xampp and never had an issue.
I do not know how to format folder directories but here I go. I have index and libs (folder) at same hierarchy, inside libs I have 3 folders, for css, js and php.
One file inside css, jQuery and scripts inside js and 3 files calling different apis inside php.
My first time hosting a website so I youtubed how to do it. however, I cannot get it to work properly.
I get the following error:
Failed to load resource: the server responded with a status of 404 ()
and it points to my jQuery and js file.
I have tried every "solution" available but nothing has been improved.
If anyone knows what is causing this can you please let me know or point towards some documentation so that I can fix it.
Thank you

I have found the issue.
The folder inside were in upper case and it causes an issue because the path was case sensitive.
By changing the path to JS instead of js and PHP opose to php, it was able to find the file

Related

Multi-page Airconsole controller?

I'm just starting to create a controller for use with Airconsole. I'd like it to be somewhat complicated and will be using Angular to create different pages.
In Unity, I can drag in a controller.html file. However, I've been getting resource not found errors when I try to access say controller.js or controller.css. How can I upload multliple files to the Airconsole host? Is there a general pattern used by other games?
So far I'm considering
hosting my app separately and just redirecting to my separate web page. This seems to give errors in the emulator though.
Compiling the entire app into just one HTML file.. Not sure how to get these entirely into one file. When I run ng build I get a smaller dist compiled file, but it still consists of several smaller files. Will try dragging that into Unity and trying again. But dragging the entire Angular project inside Unity felt like a really bad idea..
Link to files hosted on separate pages but still have the uploaded HTML file do something.. But not sure how much I need to do here vs how much I can move to other files that I host.
You can create your controller using controller.html with Angular (1?!), have different pages (e.g. via ng-include and the angular routing module) and upload everything to AirConsole (developers).
By using ng-include you can have multiple .html views you dynamically load into the controller.html.
I once wrote an example app for AirConsole and Angular:
https://github.com/francois-n-dream/airconsole-angular-phaser
Just think of it as if you would make a (mobile) website which in addition uses the AirConsole API for device communication.
My basic "how to include other files" question was answered well by another question: How to include js and css.
For the more generic question of working with Angular, I still haven't quite figured it out. But what I'm doing at the moment:
I have an Angular project outside of Unity. I run ng build to compile everything into a folder dist. Then two options work:
Deploy the dist folder to static file hosting and change index.html's relative links to point to the separately hosted files with <base href="https://cloudfilehosting/airconsole-host/">
OR
Copy the dist folder into Unity's Assets/WebGLTemplates/AirConsole folder.

How to overcome the css problems in IE

I have developed a application, which i tried to run to run in different browsers.
In Google Chrome its working properly.
But when i run the same application in Internet Explorer some CSS are not affecting properly.
The thing i noticed in the debugger is the application is loading the library.css file from resources,
means from the below path its taking that css file and it is affecting my application.
https://sapui5.netweaver.ondemand.com/resources/sap/m/themes/sap_bluecrystal/library.css
Where as in Chrome its not loading any such library.css file.
How can i over come this..?
Please help me on this.
Thanks
Sathish.
Don't load css file in index.html,because in server index.html will not load,so the final solution is we need to load external css file in component.This is the best practise.
"Use browser prefix so that it will work in IE"
Some reference links MDN resource
some unknown but useful

cannot find image of webite header in joomla

Am just beginning with joomla on a site that is already existing and was previously managed by someone else who is not available at the moment. I am trying to troubleshoot a problem why the website is displaying the header differently in different PCs but I am not being able to find the image of that header file. I tried to look for it under "site > media" but cannot find the image among the images in that area. I also tried to look for the path to the image through the template css and found this path ../images/logo.png which I believe must be the path to the header image but I honestly don't really know which path ../images/logo.png is but assuming it is the one under "media" then I still cannot find the image. Could you give me a clue on where the header image files could be found cause I've actually still failed? Or, could you make me understand this path ../images/logo.png or how to find an image on a joomla admin interface like say "logo.png". In fact I discover that on looking at the CSS for the template, the image paths found in it are not found in "Media"? Is there another path for the images in the template and how do I access them? I cannot FTP my host at the moment to view the physical files due to the long procedure needed so am hoping that there is a way to find it. I only have joomla admin access and nothing like Cpanel as yet. The joomla version of the site is 1.5.22 which I know is an old one but I plan to do first things first. Hope I've given enough infor.
Try using FireBug, or Chrome debugger - (press F12) and check "Click an element in the page to inspect" to see where the specific image is located exactly.

Tomcat java servlet redirecting to wrong URL

I have a login servlet that is supposed to send a redirect to a specified url but instead I seem to be getting sent to an older version. I am using Tomcat 7 in eclipse and thinking it must be somewhere in the meta data that is screwie.
response.sendRedirect("../xyz/home.jsp");
but instead of going to xyz/home.jsp I am going to xyz1/home.jsp.
I had an old project called xyz1 which I then did a refracter to change the name to xyz. Now it seems that the login servlet keeps referring to xyz1/home.jsp. My other links are fine since I am using href and relative paths. I did a search through the meta-data to see if there was any older references to xyz1 and there were so I changed them and I also did a search in the server configuration files which I had also fixed. Not sure what other options there are.
Thanks,
-Tommy
Also the debugger is kind of useless since it goes through .class files that cant be read ...
I renamed xyz to be xyz1 and then just made a blank project called xyz. Only moved my source files and let the metadata fill in itself. I also made a new server just to be safe.

How can I fix directory detection in GWT's nocache.js?

My GWT/forplay project has stopped working. The project/project.nocache.js file makes the browser request md5hash.cache.html, rather than project/md5hash.cache.html. (It tries to load from one directory too high.) This results in a 404, of course. I have seen this across browsers, and even across servers.
Can anybody with nocache.js knowledge take a guess at why it now fails to point the browser to the right place for the cache.html file?
Thank you!