Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

Docs: Multi-site setup #60

Open
chadwithuhc opened this issue Jan 21, 2013 · 4 comments
Open

Docs: Multi-site setup #60

chadwithuhc opened this issue Jan 21, 2013 · 4 comments
Labels

Comments

@chadwithuhc
Copy link

Can you please provide more documentation on setting up a multi-site install with shared resources? The docs do mention it briefly, but a dedicated page would be appreciated!

For Example:

One Domain with Multiple Subdomains
Say I have domain.com as my main site and want to setup a few subdomained sites with similar design. These will be something like products.domain.com, support.domain.com, etc. They will share the same assets such as CSS, JS, Images, etc. Since they are separate subdomains they will need to be output to different folders and have separate config.json files.

@laktek
Copy link
Owner

laktek commented Jan 21, 2013

Easiest would be to have a config.json for each site, which instructs to use a common template directory and different content directories to output into different directories (eg. products.domain.com)

Then you will need to run punch g config1.json to generate each site. I will see whether I can improve the generate command to look and execute multiple configs.

@chadwithuhc
Copy link
Author

So each site has to be output manually? I thought I read something in the docs about putting them in subfolders to allow multiple sites on one install and shared resources?

@laktek
Copy link
Owner

laktek commented Jan 31, 2013

You can do that too. Output each site in their own sub-folder and then map them to the domain with apache config.

@teddychan
Copy link

is it possible to work with this in Amazon S3 case?

say I have site:

www.domain1.com
www.domain2.com
www.domain3.com

when i do punch g www.domain1.com
it will deploy to the correct S3 bucket?

what will it look like in the output folder?

/output/www.domain1.com/index.html
/output/www.domain2.com/index.html
/output/www.domain3.com/index.html

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants