Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding staging and deployment documentation #81

Merged
merged 1 commit into from
Feb 16, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,26 +38,38 @@ To add a React component, you can target a container element from `/source/js/ma
### File Structure

```
.
/
├── env <- Environment variables
├── dest <- Compiled code generated from source. Don't edit!
├── locales <- Localized strings (Java .properties syntax)
├── scripts <- Scripts run by npm tasks
└── source <- Source code
├── images <- Image assets
├── js <- JS code
├── pug <- Pug/Jade templates
│   └── components <- React components
├── json <- JSON for static data sets
├── pug <- Pug templates
└── sass <- Sass code
```

### Deployment

#### Staging

Currently staged builds are hosted via GitHub Pages. A staged build can be deployed to any repo by running:
Builds to staging are triggered by commits to `master`. A [Jenkins job](https://jenkins.mofoprod.net/view/STAGING/job/Network%20(staging)/) deploys to the "network-staging" S3 bucket in us-east-1, which is served using a CloudFront CDN.

Staging URL is [network.mofostaging.net](https://network.mofostaging.net)

##### gh-pages "personal" staged builds

A build can be deployed to GitHub Pages on any fork by running:

`npm run stage REMOTE` (Change `REMOTE` to match your desired target)

This is typically useful for creating staged builds of unmerged features for design review.

#### Production

*TBD*
Production deployments are triggered manually via a [Jenkins job](https://jenkins.mofoprod.net/view/STAGING/job/Network%20(production)/). Deployments are made to "network-production" in us-east-1, served using a CloudFront CDN.

Temporary production URL is [network.mofoprod.net](https://network.mofoprod.net)