ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Git, system above root logic

August 26, 2012 9:39pm

Subscribe [2]
  • #1 / Aug 26, 2012 9:39pm

    Davor

    114 posts

    Hi guys/girls..

    I need some advices for using git with EE, I’m finally moving some of my projects to git and I have some problems, figuring how to handle system above root and deployments to dev and production (deployments are handled by beanstalk)

    Actually, production is not a problem (http://www.domain.com), as I already use there system above root, the problem is the dev environment that I plan to put on dev.domain.com, this ‘dev’ is actually a folder in domain.com structure, so I have different folder structure for dev and for production, I’m not sure how to handle that, beside buying another domain and setup the same folder structure as in production.

    Or just get back system to website root and avoid the troubles? 😊

    Can someone give me your basic setup for this?

    thanx

  • #2 / Aug 27, 2012 5:00am

    John Fuller

    779 posts

    Keep the directory structure the same for both.

    Maybe just add another directory, which would then add another segment.

    /domain/dev/ - Put your system folder here.
    /domain/dev/public - Put your public stuff here.
    dev.domain.com/public/index.php/site/index - This is the resulting URL.

    The extra segment shouldn’t cause any problems, but it might be a bit confusing at times.

    Alternatively, you might ask your host if you can somehow override the structure so that you can make the public location another directory deep.

     

  • #3 / Aug 27, 2012 8:29am

    Davor

    114 posts

    Hey John,

    yeah, that is interesting, I can even map subdomain to that dev/public/ folder, so that way I think I can replicate the conditions and folder structure.

    I will try this and see if it works.
    thank you

  • #4 / Sep 04, 2012 5:01pm

    Davor

    114 posts

    Hi, just to give an update on this 😊

    In cPanel I can configure a subdomain (dev.domain.com) to look at /user/<dev folder>/public_html/ and production domain to look normal at /user/public_html/ that way I have the same folder structures. And its working also with system above root without problems. I deploy production to /user/ and development to /user/<dev folder>/ both have public_html inside as I have in my git setup.

    happy 😊

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases