⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

multi-sites installation



vang
  • profile picture
  • Member

Posted 18 February 2013 - 06:37 AM

hi,

i've installed CI and grocerycrud in the following file structure:

 

/base/ci/system/
/base/ci/application/site1/
/base/ci/application/site2/
/base/www/site1/index.php
/base/www/site1/assets/
/base/www/site2/index.php
/base/www/site2/assets/

All are working properly.

As you can see, if i have xx projects later, i'll need to copy xx times the /assets folder.

This will take up a lot of unnecessary harddisk space as the contents of the /assets are the same.

Pls advise how i can make all sites to use only 1 assets folder at this location (/base/www/assets/).

/base/ci/system/
/base/ci/application/site1/
/base/ci/application/site2/
/base/www/assets/
/base/www/site1/index.php
/base/www/site2/index.php

Many thanks for your guidance.

 

regards,

vang


victor
  • profile picture
  • Member

Posted 18 February 2013 - 08:09 AM

Hi Vang and velcome to the forum.
Really I think GC takes very little space. Dont worry about it.

But If you want to use subdomains for your project - you can use a separate subdomain for the admin-panel and for the media data.
For example you :

site.com
profile.site.com
forum.site.com
admin.site.com
media.site.com/


vang
  • profile picture
  • Member

Posted 18 February 2013 - 08:30 AM

Hi Victor,

actually i'm planing to use 1 domain name for all the sites. eg.

www.abc.com/tiger/index.php

www.abc.com/lion/index.php

www.abc.com/leopard/index.php

1 project already use more than 7 MB of /assets.

10 projects will use 70 MB++!!! which unfortunately i do not have such a luxury on harddisk space.

Are you able to help on this, thanks?


victor
  • profile picture
  • Member

Posted 18 February 2013 - 09:11 AM

Try put the the "assets" into main dirrectory and change thise parametrs:

 

    protected $default_language_path                = 'assets/grocery_crud/languages';
    protected $default_config_path                    = 'assets/grocery_crud/config';
    protected $default_assets_path                    = 'assets/grocery_crud';