- 博客(2)
- 收藏
- 关注
在Sinatra中灵活地配置Environments
在Sinatra中灵活的配置Environments 在Sinatra中有三个预先定义的环境属性值,包括:development, test, production.这个当前所处的环境的值还可以通过RACK_ENV这个环境变量来设置。如果什么都不设置,默认就是develpment。 之所以要区分不同环境的值,主要是我们在不同的环境下需要采用不同的配置。例如:开发环境采用p...
2012-12-27 14:52:44 157
organize rspec2 tests into 'unit' (fast) and 'integration' (slow) categories
I wish I can use these under commands to run the tests. rake spec # run all testsrake spec:integration # run all integration testsrake spec:unit # run al...
2012-12-26 11:17:25 136
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人