Skip to content

Commit 272d6c6

Browse files
author
jiawei22
committed
增加README
1 parent 78f8540 commit 272d6c6

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

README.md

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Go应用示例
2+
3+
## 本地运行
4+
5+
```sh
6+
$ cd $GOPATH
7+
$ git clone git@github.com:sinacloud/go-getting-started-dockerfile.git
8+
$ go build -o go-getting-started-dockerfile
9+
$ ./go-getting-started-dockerfile
10+
```
11+
12+
现在,本示例应用已经跑在了你的 localhost:5050 端口上了。
13+
14+
## 部署到sinacloud
15+
16+
首先,提交代码到你的sinacloud应用的git仓库。
17+
18+
19+
登陆sinacloud容器云的管理页面,在运行环境管理-代码管理-如何部署查看部署代码方式。
20+
21+
部署完成之后,你就可以通过 http://$APPNAME.saelinzi.com 来访问你的应用了。
22+
23+
```
24+
如果您的应用显示未激活,您需要设置host才能访问,设置方法参见应用的管理页面
25+
```
26+
27+
## 相关文档

0 commit comments

Comments
 (0)