Tuesday, 7 March 2017

I need help publishing my website to my hosting service

I'm very new to web development and hosting websites so sorry if I'm not explaining this clearly.So currently to run the website I made, I go to my terminal and run a command called "node server" which runs a file called server.js that makes a web server on my local machine in order to run HTTP requests and serves a folder of static files which include my css and javascript files.I just went to cpanel for my hosting, made a new folder and uploaded my local website files, and made a new subdomain for this subdirectory. But when I go to the subdomain I just made, only the index.html file runs. The rest of the process doesn't execute.And I have no clue how to replicate what I do on my local machine to run the website. You can see the folder setup on github: http://ift.tt/2mVE7pl

Submitted March 08, 2017 at 02:47AM by tomansari

No comments:

Post a Comment