今晚跑步时听一下
我是学现代医学的,不是中医
期待 too
收入略自由,生活愉悦即可。
想过发财,但没有楼主这么强烈。
对用户超级不负责。操
好想你很懂的样子。
vps 也要花钱滴。 域名也要花钱滴. 抵消点成本,有啥不好 ^_^
身边有个朋友带,速度快很多。深有感触。
其实我放到了 webapp 的目录中。但发布时系统还是要求我 sudo 权限。奇怪了。
https://github.com/xiaoronglv/chalkboard/blob/master/config/deploy.rb
require 'rvm/capistrano'
require 'bundler/capistrano'
set :rvm_type, :system
set :rvm_ruby_string, 'ruby-2.0.0-p0'
set :runner, 'webapp'
set :user, 'webapp'
role :web, '192.81.130.103'
role :app, '192.81.130.103'
role :db, '192.81.130.103', :primary => true
set :application, 'chalkboard'
set :deploy_to, '/home/webapp/apps/chalkboard'
set :use_sudo, false
set :repository, 'git://github.com/xiaoronglv/chalkboard.git'
set :scm, :git
set :scm_verbose, true
set :branch, 'master'
set :deploy_via, :remote_cache
default_run_options[:pty] = true
after 'deploy', 'deploy:cleanup'
namespace :deploy do
task :start, :roles => :app do
run "cd #{deploy_to}/current/; RAILS_ENV=production bundle exec unicorn_rails -c config/unicorn.rb -D"
#run "/etc/init.d/unicorn_#{application} start"
end
task :stop, :roles => :app do
run "kill -QUIT `cat #{deploy_to}/current/tmp/pids/unicorn.pid`"
#run "/etc/init.d/unicorn_#{application} stop"
end
desc "Restart Application"
task :restart, :roles => :app do
run "kill -USR2 `cat #{deploy_to}/current/tmp/pids/unicorn.pid`"
end
task :setup_config, :roles => :app do
sudo "ln -nfs #{current_path}/config/nginx.conf /etc/nginx/sites-enabled/#{application}.conf"
sudo "ln -nfs #{current_path}/config/unicorn_init.sh /etc/init.d/unicorn_#{application}"
run "mkdir -p #{shared_path}/config"
put File.read('config/database.example.yml'), "#{shared_path}/config/database.yml"
puts "Now edit the config files in #{shared_path}."
end
after 'deploy:setup', 'deploy:setup_config'
task :symlink_config, :roles => :app do
run "ln -nfs #{shared_path}/config/database.yml #{release_path}/config/database.yml"
end
after 'deploy:finalize_update', 'deploy:symlink_config'
end
我发现一个规律,@iBachue 特别喜欢回复美女提的问题。
:)
我是济南人,回家亲戚问我:啥是 IT 啊,打游戏吗?
好好的医生不当,搞 it !!
/app/assets/stylesheets/bootstrap_and_overrides.css
@import "twitter/bootstrap/bootstrap";
body { padding-top: 60px; }
@import "twitter/bootstrap/responsive";
我也曾碰到过这个问题,详情看这里。
http://railscasts.com/episodes/328-twitter-bootstrap-basics?view=asciicast
淄博出人才啊。
简洁,写作时不会有干扰。
好文章。
#2 楼 @chentianwen 什么意思啊?
相比 node, 有啥优势?
读源码挺方便
有没有从滨江阿里/网易附近
出发的啊,求搭车。