Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Docs: Multi-site setup #60

chadwithuhc opened this Issue Jan 21, 2013 · 4 comments


None yet
3 participants

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 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.

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 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.

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

say I have site:


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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment