Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit feef289

Browse filesBrowse files
committed
补充了docker环境下,获取最新代码及安装requirement的说明
1 parent d4c00a1 commit feef289
Copy full SHA for feef289

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎posts/firefly-docker-tutorial.md‎

Copy file name to clipboardExpand all lines: posts/firefly-docker-tutorial.md
+2-2Lines changed: 2 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ root@d57a1be6ead:/# git config --global user.email johndoe@example.com
2525
root@d57a1be6ead:/# cd home/firefly
2626
root@d57a1be6ead:/home/firefly# git remote rename origin upstream
2727
root@d57a1be6ead:/home/firefly# git remote add origin http://github.com/xxxx/firefly.git //这里是填你fork过去的项目地址
28-
2928
```
29+
** 当git仓库配置好后,请执行`git pull upstream master`来获取最新代码.
3030

3131

3232
## 运行firefly
3333
```
3434
root@d57a1be6ead:/# mongod & //启动mongo
3535
root@d57a1be6ead:/# redis-server & //启动redis
3636
root@d57a1be6ead:/# cd home/firefly
37-
root@d57a1be6ead:/home/firefly# source venv/bin/activate
37+
root@d57a1be6ead:/home/firefly# source venv/bin/activate //如果代码有更新过,最好重新安装一下requirement
3838
root@d57a1be6ead:/home/firefly# python manage.py runserver //此时firefly运行在docker中的5000端口上
3939
```
4040
** 如果需要在宿主机中访问docker中运行的firefly需要在运行时进行一次端口映射,具体来说就是在`$ sudo docker run -t -i halfcrazy/pythoncn-firefly:v1 /bin/bash`执行这一步时,加一个参数 `-p 5000:5000`,将docker中的5000端口绑定到本地主机的5000端口。此时在宿主机的浏览器中打开`127.0.0.1:5000`就可以访问到docker中firefly的5000端口。

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.