发表于: 2019-06-24 21:55:09
1 932
今天完成的事情:用NginX测试任务一的代码;学习GitHub并创建一个repository;
明天计划的事情:学习git并在本地项目中编写代码;
遇到的问题:还不太清楚GitHub教程的第7步;
收获:NginX的最基本操作;GitHub的仓库结构与项目的进行流程;
NginX
用任务重提供的教程做了测试,手机访问成功。
server {
listen 80;
server_name localhost;
location / {
root html;
index index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
“下面我们仔细来分析一下:
listen
:表示当前的代理服务器监听的端口,默认的是监听80端口。注意,如果我们配置了多个server,这个listen要配置不一样,不然就不能确定转到哪里去了。server_name
:表示监听到之后需要转到哪里去,这时我们直接转到本地,这时是直接到nginx文件夹内。location
:表示匹配的路径,这时配置了/表示所有请求都被匹配到这里root
:里面配置了root,表示当匹配这个请求的路径时,将会在这个文件夹内寻找相应的文件,这里对我们之后的静态文件伺服很有用。index
:当没有指定主页时,默认会选择这个指定的文件,它可以有多个,并按顺序来加载,如果第一个不存在,则找第二个,依此类推。
下面的error_page是代表错误的页面,这里我们暂时不用,先不管它 ”
参考
GitHub
安装GitHub App,通过《Introduction to GitHub》课程学习GitHub,理解GitHub flow
。
主要学习了:
1.在setting
中的GitHuub Pages
配置master branch
;
2.在issue
中关闭一个issue
3.在issue
的右边栏中assign
分配team成员;
4.在code/master
中创建branch
;
5.在一个branch
中commit
一个文件;
6.在commit
之后,通过pull requests
分享changes;
7.在pull requests/ Files changed
中respond a view
Step 7: Respond to a review
Your pull request is looking great!Let’s add some content to your file. Replace line 5 of your file with a quotation or meme and witty caption. Remember: Markdown is supported.
⌨️ Activity: Change your file
1.Click the Files Changed tab in this pull request.
2.Click on the pencil icon found on the right side of the screen to edit your newly added file.
3.Replace line 5 with something new.
4.Scroll to the bottom and click Commit Changes.
不知道这步为什么叫respond a view??
8.合并pull requests
。
评论