|
| 1 | +[](https://pypi.python.org/pypi/collective.big.bang/) |
| 2 | +[](https://github.com/collective/collective.big.bang/actions/workflows/test.yml) |
| 3 | + |
| 4 | +[](https://pypi.python.org/pypi/collective.big.bang/) |
| 5 | + |
| 6 | +# collective.big.bang |
| 7 | + |
| 8 | +``` |
| 9 | +Our whole universe was in a hot, dense state |
| 10 | +Then nearly fourteen billion years ago expansion started, wait |
| 11 | +The earth began to cool, the autotrophs began to drool |
| 12 | +Neanderthals developed tools |
| 13 | +We built a wall (we built the pyramids) |
| 14 | +Math, science, history, unraveling the mysteries |
| 15 | +That all started with the big bang! Hey! |
| 16 | +``` |
| 17 | + |
| 18 | +So all started with the Plone site! Hey! |
| 19 | +This package is used to create a Plone site when Zope is started (just before the `Ready to handle requests` sentence). |
| 20 | + |
| 21 | +You can use environment variables to create the Plone site and choose which packages you would like to install. See "Environment variables". |
| 22 | + |
| 23 | +### Why not use `collective.recipe.plonesite`? |
| 24 | + |
| 25 | +The goal is to create the Plone site when you deploy a new Plone in a containerized environment. |
| 26 | +We think it's easier to create the Plone site on start-up, without an entrypoint or extra commands. |
| 27 | +It's simpler in a containerized environment than starting a buildout part to create a Plone site. |
| 28 | + |
| 29 | +--- |
| 30 | + |
| 31 | +**Fun fact:** |
| 32 | +This package is now called `collective.big.bang` instead of the original `collective.bigbang`, because the name `collective.bigbang` was rejected by PyPI. |
| 33 | + |
| 34 | +## Environment variables |
| 35 | + |
| 36 | +You can add environment variables into your buildout under the `instance` part using `environment-vars`: |
| 37 | + |
| 38 | +``` |
| 39 | +... |
| 40 | +[instance] |
| 41 | +... |
| 42 | +environment-vars = |
| 43 | + PLONE_EXTENSION_IDS plone.app.caching:default,plonetheme.barceloneta:default |
| 44 | + DEFAULT_LANGUAGE fr |
| 45 | + ADMIN_PASSWORD mysuperpa$$w0rd |
| 46 | + ACTIVE_BIGBANG True |
| 47 | +``` |
| 48 | + |
| 49 | +Or use tools like [`direnv`](https://direnv.net/) (example `.envrc` file): |
| 50 | + |
| 51 | +```bash |
| 52 | +export PLONE_EXTENSION_IDS=plone.app.caching:default,plonetheme.barceloneta:default |
| 53 | +export DEFAULT_LANGUAGE=fr |
| 54 | +export ADMIN_PASSWORD=mysuperpa$$w0rd |
| 55 | +export ACTIVE_BIGBANG=True |
| 56 | +``` |
| 57 | + |
| 58 | +### `PLONE_EXTENSION_IDS` |
| 59 | +A list of GenericSetup profiles to install. |
| 60 | +**Default:** `plone.app.caching:default,plonetheme.barceloneta:default` |
| 61 | + |
| 62 | +### `DEFAULT_LANGUAGE` |
| 63 | +The default language of the Plone site. |
| 64 | +**Default:** `en` |
| 65 | + |
| 66 | +### `ADMIN_PASSWORD` |
| 67 | +The password for the Zope "admin" user. |
| 68 | +**Note:** No default. If not set, the admin password will not be updated. |
| 69 | + |
| 70 | +### `ACTIVE_BIGBANG` |
| 71 | +Create a Plone site on this instance. |
| 72 | +Used to avoid conflict errors; should be `True` on only one instance. |
| 73 | +**Default:** `False` |
| 74 | + |
| 75 | +--- |
| 76 | + |
| 77 | +## Features |
| 78 | + |
| 79 | +- Creates Plone site when Zope is started. |
| 80 | + |
| 81 | +## Installation |
| 82 | + |
| 83 | +Install `collective.big.bang` by adding it to your `buildout`: |
| 84 | + |
| 85 | +``` |
| 86 | +[buildout] |
| 87 | +
|
| 88 | +... |
| 89 | +
|
| 90 | +eggs += |
| 91 | + collective.big.bang |
| 92 | +
|
| 93 | +... |
| 94 | +
|
| 95 | +[instance] |
| 96 | +... |
| 97 | +environment-vars = |
| 98 | + PLONE_EXTENSION_IDS plone.app.caching:default,plonetheme.barceloneta:default |
| 99 | + DEFAULT_LANGUAGE fr |
| 100 | + ADMIN_PASSWORD mysuperpa$$w0rd |
| 101 | + ACTIVE_BIGBANG True |
| 102 | +``` |
| 103 | + |
| 104 | +Then run: |
| 105 | + |
| 106 | +```bash |
| 107 | +bin/buildout |
| 108 | +``` |
| 109 | + |
| 110 | +## Contribute |
| 111 | + |
| 112 | +- [Issue Tracker](https://github.com/collective/collective.big.bang/issues) |
| 113 | +- [Source Code](https://github.com/collective/collective.big.bang) |
| 114 | + |
| 115 | +## Support |
| 116 | + |
| 117 | +If you're having issues, please let us know by opening an issue. |
| 118 | + |
| 119 | +## License |
| 120 | + |
| 121 | +The project is licensed under the **GPLv2**. |
0 commit comments