CodeIgniter 生产和开发服务器位于同一域中。 (无子域)
我用谷歌搜索了很多次,但现在我必须在这里问。
我想为开发/生产网站制定工作流程。
我的限制是我使用 Facebook Connect(现在是 Facebook Graph),所以我需要将开发和产品放在同一个域和服务器上。 (为了能够登录并测试功能)
我想我会编辑 CodeIgniter Index.php 来重定向,如果我有一个特定的用户代理(我可以编辑我的 firefox 之一)
你认为这是一个好主意或者你有一个更好的?
现在出现了一个永恒的问题:我怎样才能以简单的方式部署它?
我应该使用 Capistrano 还是 Phing ? 或者只是一个带有 SVN 的脚本?
请帮助我,我对部署这件事完全陌生。我曾经直接在我的小网站或其他领域的生产中工作。但现在不可能了。
I googled this many times but now I have to ask it here.
I want to make a workflow for a website for Developpement/Production.
My constraint is that I use Facebook Connect (Facebook Graph now) so I need to have the dev and prod on the same domain and server. (to be able to log in and test the features)
I thought I will edit the CodeIgniter Index.php to redirect if I have a specific user agent (I can edit the one of my firefox)
You think it's a good Idea or you have a better one ?
And now comes the eternal question : how can I deploy this the easy way ?
should I use Capistrano or Phing ?
or simply a script with SVN ?
Please help me, I'm totally new to this Deployment thing. I used to work directly in production for my little websites or on other domains. but now it's not possible anymore.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对我来说,我会有两个应用程序文件夹之类的东西。一种叫“生产”,一种叫“开发”。然后,在您设置应用程序文件夹的 index.php 文件中,您可以使用 php 来确定出于某种原因使用哪一个。只需将 $application_folder 变量设置为您需要的任何一个即可。 (您可以根据任何东西来执行此操作。cookie、IP 地址或其他东西。)
For me, I'll have something like two application folders. One called "production", one called "development". Then in your index.php file, where you set your application folder, you can use php to determine which one to use for whatever reason. Just set your $application_folder variable to whichever one you need. (You could do this based on anything. A cookie, IP address or something.)