Skip to content
This repository has been archived by the owner on Jan 24, 2018. It is now read-only.

Commit

Permalink
Merge pull request #26 from alphagov/tweak-readme
Browse files Browse the repository at this point in the history
Add details about running guide on VM
  • Loading branch information
dsingleton committed Mar 7, 2016
2 parents c14ee15 + 1cfc5f5 commit 9e8bb2a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Expand Up @@ -20,7 +20,9 @@ It's a pretty standard Rails app, clone it, `bundle` it.
$ PLEK_SERVICE_STATIC_URI=assets.digital.cabinet-office.gov.uk ./startup.sh
```

The application will start on port `3133`, so to access it visit [0.0.0.0:3113](http://0.0.0.0:3113/)
If running on a VM, then Rails needs to be bound to `0.0.0.0` rather than localhost so that it can be accessed outside of the VM. This is if using `startup.sh` but if running `bundle exec rails s` yourself you'll need to bind the port manually.

The application will start on port `3113`, so to access it visit [0.0.0.0:3113](http://0.0.0.0:3113/) or [dev.gov.uk:3113](http://dev.gov.uk:3113) on a VM.

The `PLEK_SERVICE_STATIC_URI` environment variable points to a public instance of [alphagov/static](https://github.com/alphagov/static) - This is where the component documentation used to generate the dynamic parts of this guide is fetched from. Pointing at
different static hosts may show different components.
Expand Down
2 changes: 1 addition & 1 deletion startup.sh
@@ -1 +1 @@
bundle exec rails s -p 3113
bundle exec rails s -b 0.0.0.0 -p 3113

0 comments on commit 9e8bb2a

Please sign in to comment.