tableflip / how-to

:question: How to TABLEFLIP and other stories
4 stars 0 forks source link

How to create a new TUNE site #14

Open alanshaw opened 8 years ago

alanshaw commented 8 years ago

  1. Get the client to sign up to Github
  2. Create a new github repo

    screen shot 2016-03-15 at 16 53 06
  3. Make sure the description field contains the text :robot:
  4. Give the client read and write access
  5. Create the website, ensuring it has an npm script called build in it's package.json file e.g.

    {
     "name": "bobs-sprockets",
     "version": "1.0.0",
     "scripts": {
       "build": "npm-run-all build:*",
       "build:css": "..."
     },
     "dependencies": {
       "npm-run-all": "^1.2.11"
     }
    }
  6. npm run build should output your static site to a folder in the root of the project named /dist
  7. Add TABS and TARS as project collaborators (note access levels in screenshot):

    screen shot 2016-03-15 at 15 37 00
  8. Copy the invite URL, login to Github as TABS (creds in 1password) and accept the invite
  9. Repeat 8 for TARS
  10. Add webhooks for TABS and TARS:

    screen shot 2016-03-15 at 16 46 38

    TABS

    screen shot 2016-03-15 at 17 02 37

    TARS

    screen shot 2016-03-15 at 17 02 58

    Obtain secrets from the secrets.yaml file for each infrastructure project

  11. Add a new Nginx config for the site to tars-infrastructure. e.g.

    marmalade.conf

    server {
      server_name www.marmalade-productions.co.uk marmalade-productions.co.uk;
      listen 80;
      listen [::]:80;
    
      location / {
        root /home/tars/tars/release/tableflip/marmalade-productions;
      }
    }
  12. Deploy the infrastructure changes to TARS
alanshaw commented 8 years ago

TODO: Document content.json and schema.json and where they should appear

bmordan commented 7 years ago

TUNE errors if there is no pages dir

changes are made OK then will error if there is no pages dir