Public | Automated Build

Last pushed: 7 months ago
Short Description
The website for the Math Ninja app
Full Description

math-ninja-app.com

This repo contains the source for math-ninja-app.com. It forms the basis of the math-ninja container, deployed via the rw-platform.

Development

To spin up a local instance:

$ docker-compose up

This will build as required, and then instantiate the stack. If this isn't the first time you've run it, and you need to rebuild any containers (e.g. the app container):

$ docker-compose build web

Deployment

Deployment is via razebot:

razebot deploy math-ninja to <NAME_OF_STAGE>

where NAME_OF_STAGE is either staging or platform.

Staging Environment

Whenever a PR is merged to development, DockerHub builds the 4 requisite images, and tags them with staging. Once these images are built, you can deploy to staging as per the instructions above.

The site will be available at mathninja.rwdev.io.

NOTE: If you are unable to connect to this site, check that you've added your IP address to razenet with razebot razenet list.

Production Environment

To create and deploy a new version of math ninja to production:

  1. Create a PR from development to master. This will include all the changes you want to release.
  2. Merge the PR.
  3. Create a new GitHub release. It needs a name of the form v1.2.3, with the appropriate numbering.
  4. DockerHub will then build the container for you.
  5. Update the versions file in the rw-platform directory of the services repo to reflect this new version number. Push this change to GitHub.
  6. Once the images have built, ask razebot to deploy it for you:

    razebot deploy math-ninja to platform

Large Files

Should you need to deploy large files, please use the raywenderlich.com CDN: wolverine.raywenderlich.com. This is backed by the cdn.raywenderlich.com S3 bucket in AWS.

Docker Pull Command
Owner
razeware
Source Repository