To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / deploy / README @ 1606:16325d2ab2dd
History | View | Annotate | Download (1.77 KB)
| 1 | 1595:98384d0defa0 | Chris | |
|---|---|---|---|
| 2 | Deploying the SoundSoftware site |
||
| 3 | 1601:07deb8466f65 | Chris | ================================ |
| 4 | 1595:98384d0defa0 | Chris | |
| 5 | 1601:07deb8466f65 | Chris | These scripts can be used for test or staging deployments reproducing |
| 6 | much of the configuration of the live site. Currently it's assumed |
||
| 7 | that you are providing a database dump to load -- there is no |
||
| 8 | provisioning step to initialise a new database. |
||
| 9 | |||
| 10 | |||
| 11 | You will need |
||
| 12 | ------------- |
||
| 13 | |||
| 14 | Required: |
||
| 15 | |||
| 16 | * A database dump to load. This should be left in a file called |
||
| 17 | postgres-dumpall in the soundsoftware-site root |
||
| 18 | |||
| 19 | 1605:18643ab36008 | Chris | * The database password and /sys API key for the target site. (This |
| 20 | can be queried from the db: settings table, name "sys_api_key". You |
||
| 21 | can change it in the admin UI; grep API config/*.in to see the |
||
| 22 | files you'll need to update if you change it) |
||
| 23 | 1601:07deb8466f65 | Chris | |
| 24 | * The (copyrighted) web font files used in our deployment. Leave |
||
| 25 | these in /public/themes/soundsoftware/stylesheets/fonts/ |
||
| 26 | |||
| 27 | Optional (or required for proper deployments): |
||
| 28 | |||
| 29 | * HTTPS key/cert files |
||
| 30 | |||
| 31 | |||
| 32 | Three ways to deploy |
||
| 33 | -------------------- |
||
| 34 | |||
| 35 | 1. Using Vagrant to set up a development VM: Run ./vagrant/start.sh |
||
| 36 | |||
| 37 | 2. Using Docker to set up a development container: Run ./docker/start.sh |
||
| 38 | |||
| 39 | 3. On a "real" VM or server: |
||
| 40 | |||
| 41 | * Ensure the soundsoftware-site repo is checked out at /code-to-deploy |
||
| 42 | * Run /code-to-deploy/deploy/any/run-provisioning.sh as root |
||
| 43 | |||
| 44 | But be very careful with this! You could screw up a dev box -- or |
||
| 45 | an existing live server! -- if you accidentally provision the site |
||
| 46 | directly onto it when you should have used Vagrant or a container. |
||
| 47 | 1597:eeacb8332051 | Chris | |
| 48 | |||
| 49 | After deployment |
||
| 50 | ---------------- |
||
| 51 | |||
| 52 | There is a smoke test script at test/smoketest.sh which checks that |
||
| 53 | the home page, a project page, a repo page etc can be retrieved. Some |
||
| 54 | of the pages it tries to retrieve are dependent on their generating |
||
| 55 | cron scripts having run at least once since the server was set up. |