Sina SAE Deployment node. JS (PST version)

Source: Internet
Author: User
Tags node server

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.