开发者

Rails environments deployment (dev/test and production)

开发者 https://www.devze.com 2023-02-10 05:14 出处:网络
How do I go about setting up my dev/test/production apps with respect to folder locations on my web host?

How do I go about setting up my dev/test/production apps with respect to folder locations on my web host?

I currently have two folders: MyDomainDev and MyDomainPro (for dev/test and production).

I have the subdomain "dev.mydomain.com" point to the dev/test folder and "mydomain.com" pointing to the production folder. Is this correct or am I missing something fundamental with regards to dev/test/production environments?

Should there be really only one folder but that the environment is set by the presence of a subdomain in the url?

i.e., "mydomain.com" sets environment to be 'production' whereas "dev|test.mydomain.com" sets environment to开发者_运维百科 be 'dev|test'?


First of all, it's probably not a great idea to have them on one server. Probably OK if you're just getting started.

But that said, you can have one folder, but specify the environment to run in the Rack setup for each domain. What server environment are you using?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号