Recently made a small project about music wanted to publish to the public network, looked at the big manufacturers of cloud virtual host feel not very cost-effective, have told me I can try Sina SAE, I opened Sina Cloud official website Feel good, decided to deploy a look on him.
Find a product-cloud app sae-create a new app, fill in the name of your project, jump to the Code management page
I am the node server SAE only support git upload code, so follow the prompts to use Git upload deployment code, clone a Sina cloud empty warehouse to the local
Then put your project in the Clone folder, Git opens the folder,
Add all files to git
Submit
Link Warehouse, here you need to enter your user name and security mailbox
User names and secure mailboxes can be found on the Code management page
Push code
The SAE will then automatically build and install dependencies based on your Package.json file.
Now you can go to the container management to see, no accident, your project was deployed successfully
PS: Note that the project listener port must be 5050 and you need to modify it yourself in the Index.js file.
Package.js in the Start is node your service, my is server.js so is node server.js,
Whether there is express in the dependency,
If the configuration error service is not started.
Sina SAE Deployment node. JS (PST version)