Skip to content

ministryofjustice/formbuilder-product-page

Repository files navigation

MOJ Forms Product Page

CircleCI

https://moj-forms.service.justice.gov.uk

For information on MOJ Forms please contact [email protected].

Running Locally

If you wish to run in your own browser, you'll need to run the following commands from the root of this project:

  • brew install rbenv ruby-build to install ruby version manager (rbenv)
  • rbenv init to load rbenv in your shell, follow the printed instructions
  • cat .ruby-version | xargs rbenv install to install the correct version of ruby
  • gem install bundler to install the dependency manager
  • bundle install to install middleman and its dependencies
  • npm install to install the frontend dependencies
  • bundle exec middleman server - to start middleman's built in server
  • open http://localhost:4567 - to open the example in your browser

Deployment

Deployments are handled by CircleCI.

Any branch except main will deploy to the staging environment. This can be visited here

Once a change is pushed or merged to main then production will automatically be deployed.

The environment variables required in CircleCI - check the Tech Docs for more infomation.

Making Content Changes without Installing Middleman and Other Tools (well maybe a text editor)

Add this repo to git desktop Create a new branch for your changes Open the files in source/ and update the html Add your changes to the branch Commit changes and push up

This will trigger an action to build the site in staging.