mirror of
https://github.com/grafana/grafana.git
synced 2025-09-25 00:34:36 +08:00
Added grunt server command
This commit is contained in:
11
tasks/options/connect.js
Normal file
11
tasks/options/connect.js
Normal file
@ -0,0 +1,11 @@
|
||||
module.exports = function(config) {
|
||||
return {
|
||||
dev: {
|
||||
options: {
|
||||
port: 5601,
|
||||
base: config.srcDir,
|
||||
keepalive: true
|
||||
}
|
||||
},
|
||||
}
|
||||
};
|
3
tasks/server_task.js
Normal file
3
tasks/server_task.js
Normal file
@ -0,0 +1,3 @@
|
||||
module.exports = function(grunt) {
|
||||
grunt.registerTask('server', ['connect:dev']);
|
||||
};
|
Reference in New Issue
Block a user