谷歌代码+临时服务器? [英] google code + temp server?

查看:50
本文介绍了谷歌代码+临时服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在启动一个新项目,以使用Django开发网站.我们已经在Google代码上创建了一个项目.我们希望能够偶尔向某些人显示网站的进度,而不必购买真正的服务器.

We are starting a new project to develop a website using django. We have created a project on google code. We would like to be able to occasionally show the progress of the site to some people, without having to purchase a real server.

我们都在通过eclipse和SVN修改项目.创建运行服务器类型的东西但允许其他人临时通过Internet访问的最佳方法是什么?

We are all modifying the project through eclipse and SVN. What's the best way to create a runserver type thing but allow othes to access over the internet temporarily?

谢谢

推荐答案

一种方法是运行Django开发服务器以在多个接口上进行绑定:

One way is to run Django development server to bind on multiple interfaces:

python manage.py runserver 0.0.0.0:8000 

或指定要绑定的接口的IP,例如,这只会侦听IP为192.168.1.100的接口:

Or specify a IP of the interface to bind to, for example this would only listen on the interface who's IP is 192.168.1.100:

python manage.py runserver 192.168.1.100:8000 

但是Django开发服务器是单线程的,因此不能很好地处理并发请求.

But Django development server is single threaded and thus will not work good with concurrent requests.

我建议您使用适当的Web服务器(例如Apache或ngnix)在共享主机或其他设备上甚至在本地设置开发预览.

I would advise setting up a development preview on shared hosting or something, or even locally, with a proper web server (such as Apache or ngnix).

如果您在本地进行操作,则只需将流量从路由器转发到本地安装即可,如果您没有静态IP,则可以使用诸如 DynDns 没有IP .

If you do it locally just portforward your traffic from router to your local installation, if you don't have static IP you can use a service such as DynDns or No-ip.

该主题在Stackoverflow上已经讨论了好几次,可以随时搜索其他想法.

This subject has been covered several times on Stackoverflow, feel free to search for other ideas.

这篇关于谷歌代码+临时服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆