Deploy html on the virtual cloud server to obtain a unique URL link, view your html page in a browser, and deploy the page

Source: Internet
Author: User

Deploy html on the virtual cloud server to obtain a unique URL link, view your html page in a browser, and deploy the page

How to deploy html files to directly deploy html files on a virtual ECs instance and open them through links anytime and anywhere.
First, register the Sina cloud account for real-name authentication. follow the steps below to deploy your own html file on the cloud and obtain a unique website.
After completing real-name authentication, go to your user center and enter the cloud application SAE in my products. (If you have not registered Sina cloud, and you intend to register Sina cloud, please fill in my invitation code: http://t.cn/RVKFvDe, so we can get Sina cloud sent out of the invitation beans, this beans useful after you know, hey)

 
Click "create new application" and select "PHP-standard environment-5.6-GIT". The reason for this is that you do not have to spend money on the standard environment, but do not spend money on the standard environment. The important thing is to say three times, however, you just need to select the language version and code management you want to use. This article takes git as an example. In the application information, the second-level domain name is the unique domain name you want to use (after the completion, enter this second-level domain name in the browser to open your page), note that this domain name can only be unique, it is recommended that the domain name in lower case, here, ydemo2017 is used as an example. The application name can be easily viewed after it is created.
Upload the html file to the created application. Create a folder, right-click GIT bsore HERE to open the git console, and enter git config -- global user. name "yourGitName", Press enter, and enter git config -- global user. e-mail "xxxxxxxx@xx.com", Press enter to complete git Information Authentication. Run mkdir ydemo2017 & cd ydemo2017, press enter, git init, press enter, git remote add sae plugin (the cloud terminal opens index.html or index. php files, other names are not allowed) put in the ydemo folder, use the command git add index.html to upload code, continue entering git commit-m "initial commit", Press enter, enter git push sae master: 1 and press Enter. A window will pop up, in which you enter your sina cloud security mailbox and password. You can view this in your user information,


After uploading is completed, the git console is shown in figure.

This is the official code upload guide ,.

Open your second-level domain name to view your html page.

 

 

Related Article

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.