Deploying Sails to a standard web server (Windows)? - node.js

Today I discovered Sails and have been watching a few tutorials. One thing I can't seem to work and find out is how to deploy it to a standard web server, like for example via an FTP client. I've seen the tutorial on how to deploy it to a Heroku account, but this isn't really what I'm after, as we already rent a Windows 2012 server.
I've got a feeling I'm completely missing something here, so can someone please help me out :)
Many thanks

You can transfer all files via FTP to your Webserver (include all node-modules).
But you have to make sure NodeJS is installed on your server. Than login into your Server (e.g. via SSH) and start your Sails-App (node app.js)

Related

How to deploy several react apps in a node.js server VPS hostinger server

lately I've been doing a website with an admin panel using react, and I would like to deploy the website in a VPS that I bought from hostinger that haves CentOs7, and I don't know how to deploy it as in my PC i only do npm start and opens into a local server, well now I would like to open in directly in my domain with the VPS server, please I need the help, I've been struggling for over 3 days to solve this problem but I don't know how to.
I already installed Nodejs in the server I just don't know what to do next.
I tried reading lot of articles and watching YT videos but noone helped me, or the ones that were kinda usefull I didn't understand them.

How to hot reload on netlify?

Netlify just as example, same question with CloudFlare Pages etc.
In the past I setup my own server with node and react/vue.
I have my node setup on a server because I don't want to install node and node packages on my local machine.
When I was developing I SSH into the server with port forwarding.
So I ran a dev server on port 8888 (npm run dev) on the server and opened http://localhost:8888 in my local browser.
When I make a change to the files I can immediately see the effects without running npm run build.
I am thinking about using a service like netlify because its the right thing to do? But how can I see the changes I make without actually running build?
Is this even possible or do you use theses service only when you are building a website that rarely changes? I am probably missing something. But not sure how to proceed.
I don't know what's the right way. I am very open to suggestions.
Edit: These services that I mentioned are meant for build only. See answer below. I am still leaving this question so people can post suggestions.
You cannot do this. Those services are only for hosting the build version of your app. You have to develop it locally and push the build to these services.
Why would you even want to run a development version online?

Can I deploy NodeJS Web API to Microsoft IIS?

I have a problem, because I created NODEJS API and I have to deploy it on Microsoft IIS. I have never done this before. Is it possible to do? If yes, I will be very grateful if someone describes how to do this.
If you want to host node.js application, you should firstly install the node.exe and the a build of iisnode.
https://nodejs.org/en/#download
https://github.com/tjanczuk/iisnode
After installed the IIS nodes, you could set up samples, from the administrative command prompt call %programfiles%\iisnode\setupsamples.bat.
More details, you could refer to below article:
https://www.hanselman.com/blog/InstallingAndRunningNodejsApplicationsWithinIISOnWindowsAreYouMad.aspx
I don't think if that will help you but usually NodeJS don't need a server to be live unlike php or .NET so you can create a server on NodeJS itself and launched very easy .
also IIS used for statics content and .NET websites about 90% .

Internal server error deployment on Azure - node.js and Vue.js

I have been looking all over the internet for two weeks now and I have no clue what is happening.
I have an app running on a node.js server. The app uses the Vue.js framework and Vuetify.js, so I don't have a "traditional" js server. The website works perfectly on local, but every time I try and deploy it on an Azure (Windows) web application (per request from the company I am developing for), the only thing that is displayed is this: " The page cannot be displayed because an internal server error has occurred. ".
I did set the Azure Web App to use node.js as instructed on the official documentation.
According to my searches, it is probably a problem with my web.config file, but I can't seem to solve it, so would be really happy if someone could help me out here.
What I have tried so far:
multiple versions of the Web.config file
opening the 443 and 80 port on the Azure Web App to rule out any kind of conflict there
moving around my Vue classes to try and solve a problem there
making the front end in HTML files and in Vue files. Right now it is back into Vue files
I can't seem to find what else to try and would be really grateful if anyone had a solution!
I can add my web.config here if needed
Thanks in advance!

Deploying and Running Node.js app in Cloud

I have a Mean stack node.js application and amazons remote desktop machine. I need to deploy my node.js application to amozon.
I have uploaded my files to wwwRoot folder. It contains a default index.html page.
After uploading files also, i got that same index.html display in browser.
Please let me know how i can deploy and run my node.js application.
Thanks in Advance
I highly suggest you follow a guide or tutorial to get yourself set up with a node.js web server. From your question is seems to me that you're missing some key points on how a node.js web server functions and there's really not a single answer to your question. I recommend you read up on the following tutorial:
https://blog.risingstack.com/your-first-node-js-http-server/
Good luck!

Resources