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.5k Views Asked by rhb1 At
1
There are 1 best solutions below
Related Questions in NODE.JS
- Using Puppeteer to scrape a public API only when the data changes
- How to request administrator rights?
- How do I link two models in mongoose?
- Variable inside a Variable, not updating
- Unable to Post Form Data to MongoDB because of picturepath
- Connection terminated unexpectedly while performing multi row insert using pg-promise
- Processing multiple forms in nodejs and postgresql
- Node.js Server + Socket.IO + Android Mobile Applicatoin XHR Polling Error...?
- How to change the Font Weight of a SelectValue component in React when a SelectItem is selected?
- My unban and ban commands arent showing when i put the slash
- how to make read only file/directory in Mac writable
- How can I outsource worker processes within a for loop?
- Get remote MKV file metadata using nodejs
- Adding google-profanity-words to web page
- Products aren't displayed after fetching data from mysql db (node.js & express)
Related Questions in WEB-DEPLOYMENT
- Can't deploy spring application using WSL
- Cant deploy web app because of version conflict, however it runs fine locally
- Build, npm serve, npm forever: how to keep alive a deployed site ( react + nodejs)
- 500:INTERNAL_SERVER ERROR when deploying in vercel
- Setting custom attributes to flask_login.current_user that aren't stored in the database?
- Deploying Nextjs Puppeteer Web Scraper to Vercel
- onPaste converts the pasted file type to image
- Error 404 on Github Pages using React Router v6.6.1 and Vite
- How to deploy multi-module Spring Boot Maven project?
- Problem deploying Front End to Render ELIFECYCLE errno 9
- How could I add my deep learning model to a web application?
- My contact form is clearing after i click submit one time and only sends empty data to my email using emailjs
- Create multiple Razor Class Library (RCL) for the same application and include conditionally only one of them per deployment
- node server cannot find the data in the body
- How to make a video background fixed while the text is scrolling?
Related Questions in WEB-HOSTING
- How to host private files on github and link them in public html website?
- Django (REST) backend server hosting using Google Cloud
- How do I assign a subdomain.domain.com, domain.com and domain.com/[path] to three different Next JS projects
- How vercel handles '.env/secret' variables?
- Website works with 'www' but not without it
- Consistent "Incomplete response received from application" - NodeJS app on cPanel with Express
- Domain A to B routing
- how to use namecheap subdomains with netlify sites
- How to deal with inconsistent PHP warnings (especially in context of local hosting vs online hosting)?
- Is it possible to host Flutter web on any common web hostings or is there any compatibility check that I need to be aware of?
- problem connecting to Gemini API from PHP when on live server
- Why would I have to force a blazor server app to "acknowledge" the ASPNETCORE_ENVIRONMENT via web.config, rather than appsettings.X.json
- Point Apache2 virtual host to a specific branch
- errors being displayed on my wordpress site even though i have set the value to off
- Getting Error 403 Access to this resource on the server is denied! While Hitting URL For Accessing Directory
Related Questions in PRODUCTION-ENVIRONMENT
- AWS AppRunner: Redirect URI Mismatch Error with Amazon Cognito
- MapboxGl SymbolLayer iconImage showing random image in production
- How to host a proper Python Flask server with HTTP, HTTPS and interactive debug shell, all in the same global namespace?
- How to fix URLEncoder related issues?
- Newtonsoft exception in Blazor .NET 6 only in Production environment
- Application error client side exception: Next js React app only on production
- SQL Database in production migration - Best approach
- Large initial chunk files (Empty Project with PWA and SSR) Angular 17
- How solve "Illuminate\Console\Command" not found?
- How to use Django - cPanel environment variable
- How solve 403 forbidden error in vix cluste server when trying to load livewire script?
- How to perform Drizzle Migrations in SQLite using Docker on production database on a VPS using Next.js?
- Recommendations for Blue Green Deployment Testing with Minimal Assertions in Cron-Based Batch Jobs for Higher environment
- Try to deploy an Angular 17 web app with proxy config, but it does not work in production
- How can I run Hashicorp Vault docker image with HTTPS on production
Related Questions in DEV-TO-PRODUCTION
- Nextjs static & dynamic rendering
- Clear browser cache on React Vite build bundle
- Nextjs: how to debug production locally because development is working perfectly
- GitLab - Managing Non_prod and Prod configurations
- ruby on rails - Unable to load application: LoadError: cannot load such file -- database_cleaner/active_record
- Expo app crashes on when I use `npx expo start --no-dev` but runs fine with `npx expo start`
- Angular Routing fails to find Lazy-Loaded child routes in project with multiple Apps
- Cloudinary showing JSON error in production
- Building and hosting a react app on shared hosting
- Next.js & sanity | Error occurred prerendering page "/" while npm run build
- Pushing changes to production github of Next.js repo
- Why am I getting a 404 error when deploying my C# Razor report to IIS 7 in production?
- My static folder is not working in production mode / Nuxt js
- Nginx config with both SSR Client and API server
- When html file is created, its creating multiple head tag in webpack bundle
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 # Hahtags
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