Torkel Ödegaard 11 лет назад
Родитель
Сommit
9cdd9e6d5f
2 измененных файлов с 17 добавлено и 15 удалено
  1. 11 11
      README.md
  2. 6 4
      src/app/features/account/partials/account.html

+ 11 - 11
README.md

@@ -15,21 +15,14 @@ Graphite, InfluxDB & OpenTSDB.
 [![wercker status](https://app.wercker.com/status/0f109051cfaf2a6d94c0eebdc0dcaeae/s "wercker status")](https://app.wercker.com/project/bykey/0f109051cfaf2a6d94c0eebdc0dcaeae)
 [![wercker status](https://app.wercker.com/status/0f109051cfaf2a6d94c0eebdc0dcaeae/s "wercker status")](https://app.wercker.com/project/bykey/0f109051cfaf2a6d94c0eebdc0dcaeae)
 
 
 ## building and running
 ## building and running
-Before trying to build make sure the grafana frontend git submodule is loaded.
-
-By clone recursive
 
 
 ```
 ```
-git clone --recursive <this_repo>
-```
-
-In case of after clone
-```
-git submodule update --init
+go get github.com/grafana/grafana
 ```
 ```
 
 
 Building
 Building
 ```
 ```
+cd $GOPATH/src/github.com/grafana/grafana
 go run build.go setup (only needed once to install godep)
 go run build.go setup (only needed once to install godep)
 go run build.go build
 go run build.go build
 ```
 ```
@@ -44,7 +37,6 @@ go build -o ./bin/grafana .
 To build less to css for frontend:
 To build less to css for frontend:
 
 
 ```
 ```
-cd grafana
 npm install
 npm install
 npm install -g grunt-cli
 npm install -g grunt-cli
 grunt
 grunt
@@ -53,10 +45,18 @@ grunt
 To rebuild on source change:
 To rebuild on source change:
 ```
 ```
 go get github.com/Unknwon/bra
 go get github.com/Unknwon/bra
-
 bra run
 bra run
 ```
 ```
 
 
+Running
+```
+./bin/grafana web
+```
+Open grafana in your browser (default http://localhost:3000) and login with admin user (default user/pass = admin/admin).
+
+Config
+Create a grafana.custom.ini in the conf directory to override default configuration options. You only need to add the options you want to override.
+
 
 
 ## Features
 ## Features
 ### Graphite Target Editor
 ### Graphite Target Editor

+ 6 - 4
src/app/features/account/partials/account.html

@@ -6,8 +6,10 @@
 		Account Info
 		Account Info
 	</h2>
 	</h2>
 
 
-	<div class="gf-box" style="">
+	<div class="gf-box">
 		<div class="gf-box-body">
 		<div class="gf-box-body">
+			<div class="editor-row">
+				<div class="section">
 			<form name="accountForm">
 			<form name="accountForm">
 				<div>
 				<div>
 					<div class="tight-form">
 					<div class="tight-form">
@@ -16,17 +18,17 @@
 								<strong>Account name</strong>
 								<strong>Account name</strong>
 							</li>
 							</li>
 							<li>
 							<li>
-								<input type="text" required ng-model="account.name" class="input-xlarge tight-form-input last" >
+								<input type="text" required ng-model="account.name" class="input-xxlarge tight-form-input last" >
 							</li>
 							</li>
 						</ul>
 						</ul>
 						<div class="clearfix"></div>
 						<div class="clearfix"></div>
 					</div>
 					</div>
 				</div>
 				</div>
-				<br>
-
 				<br>
 				<br>
 				<button type="submit" class="pull-right btn btn-success" ng-click="update()">Update</button>
 				<button type="submit" class="pull-right btn btn-success" ng-click="update()">Update</button>
 			</form>
 			</form>
+			</div>
+			</div>
 		</div>
 		</div>
 	</div>
 	</div>