1、百度搜索新浪云,并打开官网

2、进入之后,点击控制台的云应用SAE,也就是下面的第一个。

3、点击应用管理里面的创建应用

4、会弹出下面的窗口,我们不用管,点击继续创建。

5、点击运行环境里面的标准环境(这个是免费的)

6、创建二级域名

7、点击最右边的当前部署信息中的创建应用

8、好了,现在我们的应用已经创建完成了。可以进行下一步的代码管理以及关联我们的git账号了。你进入的界面应该是这样的。

9、那么我们开始关联你的git仓库吧。如果仓库已经创建好,可以直接跳到14步。

10、首先在你的桌面上创建一个xinlangyun目录,里面有个heart.html的文件。然后用git Bash进入xinlangyun目录。

11、把你的xinlangyun目录设置为仓库
$ git init
12、下面需要把你的heart.html文件添加到暂存区
$ git add heart.html
13、提交heart.html文件到仓库
$ git commit -m 'commit heart.html file'
14、好了。我们可以关联仓库到新浪云了

首先复制仓库地址到git Bash
git remote add sae https://git.sinacloud.com/victor11
最后:用git push命令将本地分支的更新,推送到远程主机
git push sae master:1

15、现在我们的主机(新浪云)已经更新了Victor11的这个应用了,现在重新回到云应用SAE,你会看到,我们的应用管理里面多了一个Victor11的应用

16、好了,接下来我们访问一下我们的创建的应用吧

17、应用访问默认会寻找index.html文件,我们的文件是heart.html,所以我们需要手动添加heart.html
http://victor11.applinzi.com/heart.html

18、到此我们的新浪云服务器的使用已经完成了。
网友评论