Skip to content

Commit

Permalink
Merge pull request #422 from alphagov/console-message
Browse files Browse the repository at this point in the history
Link to component guide when starting app in dev mode
  • Loading branch information
NickColley committed Aug 1, 2017
2 parents dab3e85 + 8aa6ad7 commit 68476f9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions config/initializers/govuk_publishing_components.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,12 @@
GovukPublishingComponents.configure do |c|
c.component_guide_title = "Government Frontend Component Guide"
end

if Rails.env.development?
startup_message = "=> government-frontend component guide available at: /component-guide"
color_blue = 36

# https://stackoverflow.com/questions/1489183/colorized-ruby-output
puts "\e[#{color_blue}m#{startup_message}\e[0m"
end
end

0 comments on commit 68476f9

Please sign in to comment.