Eabled custom dev configuration.

Sometimes it is useful to allow an engineer to point the webclient
at an API not running on localhost. To address this edge case,
I have added src/config.json to .gitignore, and taught grunt how
to copy it during the dev build/deploy phase. If the file is not
found, it is ignored.

Do not merge until an equivalent patch to storyboard/docs is
provided.

Change-Id: I82229f92271d9094ec8ad4b52c38f3bc7ef7fa42
This commit is contained in:
Michael Krotscheck 2014-12-01 07:14:50 -08:00
parent a9bc6c0478
commit f148f2d25e
3 changed files with 5 additions and 2 deletions

1
.gitignore vendored
View File

@ -11,3 +11,4 @@ cover
.tox
src/theme/custom/**.less
src/theme/custom/**.ico
src/config.json

View File

@ -230,7 +230,8 @@ module.exports = function (grunt) {
src: [
'**/*.{txt,eot,ttf,woff}',
'*.html',
'robots.txt'
'robots.txt',
'config.json'
]
},
{

1
src/config.json.sample Normal file
View File

@ -0,0 +1 @@
{"storyboardApiBase": "http://storyboard.openstack.org/api/v1"}