Giter VIP home page Giter VIP logo

vps's Introduction

私有文件

有一些私有的密钥文件 , 放在 https://bitbucket.org/zsp042/private/ 上 (因为github的私有仓库要收费)

首先邮件 [email protected] , 索取仓库访问权限

编辑 ~/.ssh/config 文件 , 其中 id_rsa 为你在 bitbucket.org 上关联的 ssh keys

Host bitbucket.org
 User 你的用户名
 IdentityFile ~/.ssh/id_rsa

然后 在 saas目录 (也就是readme.txt所在的目录下) 执行:

git clone [email protected]:zsp042/private.git

push 貌似要用

git push origin master

如熟悉Hg , 但是不太熟悉git的人 , 可以配合hg-git插件, 用以下方式clone

hg clone git+ssh://[email protected]:zsp042/private.git

程序结构

接口的定义文件 : saas.thrift

启动线上服务器 (应该用 daemontools http://cr.yp.to/daemontools.html 之类的工具保证进程死掉以后自动重开)

server/bin/vps.py

启动开发服务器(当有文件改动的时候会自动重启)

server/bin/vps.dev.py

配置 : conf/

主程序 : server/ctrl/vps.py

VPS逻辑 : ops/

脚本 : tools/

配置文件

为了开发调试的方便,每台机器可以有自己的配置选项

参见 :

  • conf/default.py 默认配置
  • conf/host/e1.py 其中 e1.py 的 e1 为当前机器的名称

模块依赖

client :

相关链接

Thrift教程 http://book.42qu.com/thrift.html

端口登记 http://book.42qu.com/42qu/saas.html

vps's People

Contributors

zew13 avatar frostyplanet avatar xcf avatar longyee avatar zspcn avatar fy0 avatar

Stargazers

wangxiaomo avatar

Watchers

wangxiaomo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.