-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1313 from alphagov/update-guidance
Update main README and usage guidance
- Loading branch information
Showing
2 changed files
with
25 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,26 @@ | ||
## Running the gem as a standalone app | ||
## Running the component guide as a standalone app | ||
|
||
If you want to work on this gem directly, without having to add it to another | ||
application, you can run it in the development vm or on your local machine with: | ||
application, you can run it on your local machine or using [govuk-docker](https://github.com/alphagov/govuk-docker). | ||
|
||
To run it locally you'll need [Ruby](https://www.ruby-lang.org/en/downloads/) and [Node.js](https://nodejs.org/en/) installed to get this project running. | ||
|
||
### Running the component guide on your local machine | ||
``` | ||
cd ~/govuk/govuk_publishing_components | ||
./startup.sh | ||
``` | ||
|
||
The app should start on http://localhost:3212 or http://publishing-components.dev.gov.uk/component-guide on GOV.UK development machines. | ||
|
||
The app should start on [http://localhost:3212/component-guide/](http://localhost:3212/component-guide/). | ||
|
||
#### Running with bowl on the VM | ||
### Running the component guide in [govuk-docker](https://github.com/alphagov/govuk-docker) | ||
|
||
``` | ||
$ cd /var/govuk/govuk_publishing_components | ||
$ bundle | ||
$ npm install | ||
cd ~/govuk/govuk-docker | ||
make govuk_publishing_components | ||
$ cd /var/govuk/govuk-puppet/development-vm | ||
$ bowl publishing-components | ||
cd ~/govuk/govuk_publishing_components | ||
govuk-docker-up | ||
``` | ||
|
||
Then visit [publishing-components.dev.gov.uk/component-guide](http://publishing-components.dev.gov.uk/component-guide). | ||
Then visit [http://govuk-publishing-components.dev.gov.uk/component-guide/](http://govuk-publishing-components.dev.gov.uk/component-guide/). |