简体   繁体   English

在GIT回购分支上运行Pow

[英]Running Pow on GIT repo branch

I've checked out my Ruby project from GIT and I've installed pow to run it on a friendly URL from my browser. 我已经从GIT中检出了我的Ruby项目,并安装了pow以便在浏览器的友好URL上运行它。

We've got a stable working version of our app running in our GIT 'master', but now I want to run our development branch on the same pow URL. 我们已经在GIT“主”中运行了一个稳定的应用程序运行版本,但是现在我想在同一个pow URL上运行我们的开发分支。 I've already switched the working branch to our development branch 'redesign', but the Pow URL is complaining with error in the screen. 我已经将工作分支切换到开发分支“重新设计”,但是Pow URL抱怨屏幕错误。

My question: Is it even possible to run POW on a directory using a GIT branch other than 'master'? 我的问题:甚至可以使用除“ master”以外的GIT分支在目录上运行POW吗?

Yes, but you might need to restart pow to force it to refresh the code. 是的,但是您可能需要重新启动pow才能强制其刷新代码。

There's two ways to do this: 有两种方法可以做到这一点:

  • touch ~/.pow/restart.txt
  • Install the powder gem. 安装powder宝石。 That allows you to run powder restart on your app directory. 这样一来,您就可以在应用程序目录上运行powder restart

Also, you might want to run bundle on your project directory too, as dependencies might have changed in the new branch (hard to tell without more information.) 另外,您可能还想在项目目录上运行bundle ,因为依赖关系可能在新分支中发生了变化(如果没有更多信息,很难说清)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM