Skip to content

Preview website for development branches of the nrrd website

Notifications You must be signed in to change notification settings

DOI-ONRR/nrrd-branch-previews

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NRRD Site Previews

This repository provides the nginx config that provides the proxy for the preview sites.

Setup

The nginx web server runs on cloud.gov. The web server passes the requests to an AWS S3 bucket that stores the various sites for previews.

We use CircleCI to build the branches and use a sync command to send the content to the AWS S3 bucket. The path is created using the name of the branch.

Web Server Setup

To add/update the web server use the following command

cf push nrrd-preview -b https://github.com/cloudfoundry/nginx-buildpack.git -m 10M

AWS S3 Storage Setup

Cloud.gov documentation

Use cloud foundry command to create public bucket the AWS S3 Storage

cf create-service s3 basic-public <SERVICE_INSTANCE_NAME>

Enable website mode on the AWS S3 bucket using aws cli

aws s3 website s3://${BUCKET_NAME}/ --index-document index.html 

Bind the service to the web server app(nrrd-preview)

cf bind-service <APP_NAME> <SERVICE_INSTANCE_NAME>
cf restage <APP_NAME>

About

Preview website for development branches of the nrrd website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages