Home
Sign Up
Sign In
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member
Sign In
V2EX
›
Ruby on Rails
如何用capistrano部署foreman?
dqaria
·
Dec 23, 2012
· 4789 views
This topic created in 4873 days ago, the information mentioned may be changed or developed.
我使用deployer-》非root用户 安装的rbenv与bundle,因此无法执行下面需要sudo的指令~
各种google以后还是找不到较好的解决方案。。。求各位大大给出解决方案~谢谢~
sudo bundle exec foreman export upstart /etc/init -a #{application} -u deployer -l #{current_path}/log/foreman
foreman
sudo
deployer
3 replies
•
1970-01-01 08:00:00 +08:00
1
gfreezy
Dec 24, 2012
用init的方式启动,没有root肯定不行啊
2
dqaria
OP
Dec 24, 2012
@
gfreezy
对啊~但是一般都是用deployer安装rbenv与bundler的啊~很少有人用root直接安装。。然后rbenv与bundler又没有root权限。。。所以很纠结不知道怎么弄。。。
3
gfreezy
Dec 24, 2012
@
dqaria
foreman我只在开发环境使用,生产环境用capistrano来部署,Rails应该有supervisor类似的东西来启动应用的吧,或者直接用supervisor。
第一次用Rails,还没正式部署上线过,临时就tmux跑着。
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
951 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 40ms ·
UTC 21:45
·
PVG 05:45
·
LAX 14:45
·
JFK 17:45
♥ Do have faith in what you're doing.
❯