I have developed a nodejs based website. It is working perfectly on my local PC, Heroku & Now server as well. Recently I purchased a hosting server from FastComet. Then simply uploaded my nodejs files VIA FileZilla to public_html folder. Then I login into the server VIA putty and installed the dependencies using "npm install". The server is cloudlinux OS based. Then I tried to run my nodejs server using "npm start", but I cannot see my website running in my website, just showing my files in the server. Can you please tell me how can I configure my nodejs in this server ? Should I change the port(3000) to my hosting server port(17177) ? I am new to hosting configuration. Any guidance would be helpful
Deploying nodejs website on host server
1.4k Views Asked by rhb1 At
1
There are 1 best solutions below
Related Questions in NODE.JS
- How to solve CERT_UNTRUSTED error in nodemailer
- Run a loop over a callback, node js
- Implementing prerender.io middleware in sails.js
- Token based authorization in nodejs/ExpressJs and Angular(Single Page Application)
- formatting path string in javascript
- One to One screensharing using WEBRTC
- Create polygon from grid (for collisions)
- Strange npm behavior when installing packages like grunt
- Convert JSON.gz to JSON in node js
- "Your npm version is outdated." but it's not. While install yo
- Why put methods on the prototype of a class instead of declaring them in the constructor?
- Node JS Async Response
- mongoose get property from nested schema after `group`
- Cannot Receive Incoming call on Twilio android Client
- How can I change a specific line in a file with node js?
Related Questions in WEB-DEPLOYMENT
- How to make Unity Web Player work on offline?
- Change context-root inside WAR file
- Deploye two wars with different domain name but same context-path in same jboss-4.0.3
- calculate the day of my Birtday
- Python/Flask deployment without pip
- Change assets urls to cdn adding absolute path in Grunt
- Can I render and display Markdown from Github into MEAN stack website dynamically?
- I'm not getting Release Debug Option in Visual Studio
- How to test java server without deployment?
- uninitialized constant ActionController::Routing (NameError)
- Tomcat in Intellij IDEA 14 : war exploded: Server is not connected. Deploy is not available
- rsync exclude folder contents but still create folder
- Heroku: string without NULL bytes with several requirements files
- What is difference between versions of eclipse like juno, kepler etc.? Which version to choose for web development?
- Mcrypt PHP extension required in laravel 4.2 in shared hosting
Related Questions in WEB-HOSTING
- Magento returns 404 page randomly
- Web host with no template
- Add the phpmyadmin config to the file?
- Deploy Laravel 4.2 using only FTP in a shared hosting
- How to solve "Secure Connection Failed" at Server Side Issue
- Find out website hosting location
- AWS Route 53 to redirect existing domain name to EC2 IP address
- How to Host and Run a Python Script on a Cloud for free and access it online?
- "View Page Source" shows html fully expanded
- Error 404 when trying to upload Codeigniter Project 3.0 to hosting?
- Parse error: syntax error, unexpected '{' password.php 00webhost
- How to host Website using Virtual Machine in Azure?
- My website is accessed by direct URL but not by the domain name I bought. How to solve the issue?
- How to point HostGator domain to EC2 AWS
- Switching between a Vps/Dedi to a Cloud service (Like AWS/Google)
Related Questions in PRODUCTION-ENVIRONMENT
- Should I gitignore seeder files in Laravel 5?
- Using compiled images inside Handlebars erb templates
- What strategy could I use to deploy a SPA with basic page sitting in front
- Setup elastic for production
- Codeigniter - cannot load files in production server
- How to handle usercase specific code in a public repo
- tool to manage multiple tomcat servers
- Tasks for production prepared Ionic app
- Rails 5 - How to use javascript in production on heroku
- ExpressJs doesn't cache views in production mode
- AngularJS: Bundle all partial views/templates for production
- How to manage application configurations/environment variables in production
- Errno::ECONNREFUSED (Connection refused... in production environment
- Override existing Docs in production MongoDB
- How to change JS, CSS and MySQL database depending on work environment?
Related Questions in DEV-TO-PRODUCTION
- Google BigQuery asking Gmail Confirmation, Best way to handle in Production Environment
- Editing python scripts on-line?
- How can I change a Django db to MySQL on pythonanywhere?
- Building Angular 2 using the Angular CLI not copying assets in src
- Testing my Django app with uWSGI
- icons break on deployment using rails, spree with fancy extension
- Deploying nodejs website on host server
- Heroku build failure with react and tailwind
- Firebase and Expo. Deploy Expo App. Hiding Keys
- South: how to revert migrations in production server?
- Automating/Maintaining Development, Production and Staging environments
- Angular Routing fails to find Lazy-Loaded child routes in project with multiple Apps
- Expo app crashes on when I use `npx expo start --no-dev` but runs fine with `npx expo start`
- ruby on rails - Unable to load application: LoadError: cannot load such file -- database_cleaner/active_record
- GitLab - Managing Non_prod and Prod configurations
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I hope by now you have solved this out, the team of FastComet did a good job helping me on setting up my node app, you just need to add these lines to the
.htaccessfileAfter doing that I was able to running node.js, but after that an unexpected bug appeared. I wasn't able to access '/' in an express app, that was because Apache was looking for
index.html.varas the DirectoryIndex if you are having this bug, you just need to addto the
.htaccessand in my case it did work