Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dataplatform
atlas
Commits
16b81ab7
Commit
16b81ab7
authored
Jun 07, 2015
by
sanjay-patel-1991
Committed by
Vishal Kadam
Jun 07, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
-Added proxit
-Removed nginx -Added watch task for html,css and js
parent
668d886e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
38 deletions
+32
-38
gruntfile.js
dashboard/v2/gruntfile.js
+30
-15
nginx.conf
dashboard/v2/nginx.conf
+0
-22
package.json
dashboard/v2/package.json
+2
-1
No files found.
dashboard/v2/gruntfile.js
View file @
16b81ab7
...
...
@@ -17,10 +17,16 @@ module.exports = function(grunt) {
tasks
:
[
'shell'
,
'copy:mainjs'
]
},
html
:
{
files
:
[
'public/**/*.html'
]
files
:
[
'public/**/*.html'
],
tasks
:
[
'copy:dist'
]
},
css
:
{
files
:
[
'public/**/*.css'
]
files
:
[
'public/**/*.css'
],
tasks
:
[
'copy:dist'
]
},
image
:
{
files
:
[
'public/**/*.{ico,gif,png}'
],
tasks
:
[
'copy:dist'
]
}
},
jshint
:
{
...
...
@@ -32,7 +38,7 @@ module.exports = function(grunt) {
}
},
concurrent
:
{
tasks
:
[
'
build'
,
'watch'
,
'ng
server'
],
tasks
:
[
'
watch'
,
'proxit
server'
],
options
:
{
logConcurrentOutput
:
true
}
...
...
@@ -102,11 +108,6 @@ module.exports = function(grunt) {
src
:
[
'node_modules/**'
,
'package.json'
,
'server.js'
,
'server/**'
,
'public/**'
,
'!public/js/**'
,
'!public/modules/**/*.js'
]
}
},
nginx
:
{
options
:
{
config
:
'nginx.conf'
,
}
},
copy
:
{
dist
:
{
expand
:
true
,
...
...
@@ -123,13 +124,29 @@ module.exports = function(grunt) {
filter
:
'isFile'
}
},
clean
:
[
'dist'
]
clean
:
[
'dist'
],
proxit
:
{
dev
:
{
options
:
{
"port"
:
9000
,
"verbose"
:
true
,
"hosts"
:
[{
"hostnames"
:
[
"*"
],
"routes"
:
{
"/"
:
"dist"
,
"/api"
:
"http://162.249.6.39:21000/api"
}
}
]
}
}
}
});
require
(
'load-grunt-tasks'
)(
grunt
);
grunt
.
registerTask
(
'default'
,
[
'devUpdate'
,
'bower'
,
'jshint'
,
'jsbeautifier:default'
]);
grunt
.
registerTask
(
'server'
,
[
'bower'
,
'jshint'
,
'minify'
,
'concurrent'
]);
grunt
.
registerTask
(
'server'
,
[
'bower'
,
'jshint'
,
'minify'
,
'build'
,
'concurrent'
]);
grunt
.
registerTask
(
'minify'
,
'Minify the all js'
,
function
()
{
var
done
=
this
.
async
();
...
...
@@ -137,12 +154,10 @@ module.exports = function(grunt) {
grunt
.
task
.
run
([
'shell:min'
]);
done
();
});
grunt
.
registerTask
(
'
ngserver'
,
'Nginx server
'
,
function
()
{
grunt
.
loadNpmTasks
(
'proxit'
);
grunt
.
registerTask
(
'
proxitserver'
,
'Proxit
'
,
function
()
{
var
done
=
this
.
async
();
grunt
.
file
.
mkdir
(
'logs/log'
);
grunt
.
file
.
mkdir
(
'temp/client_body_temp'
);
grunt
.
task
.
run
([
'nginx:start'
]);
grunt
.
task
.
run
([
'proxit:dev'
]);
done
();
});
grunt
.
registerTask
(
'build'
,
'Build DGI'
,
function
(){
...
...
dashboard/v2/nginx.conf
deleted
100644 → 0
View file @
668d886e
events
{
worker_connections
1024
;
}
http
{
server
{
listen
3010
;
server_name
localhost
;
root
dist
;
location
/
{
try_files
$uri
$uri
/
/index.html
;
}
location
/api
{
proxy_pass
http://162.249.6.39:21000/api
;
}
error_page
500
502
503
504
/50x.html
;
location
=
/50x.html
{
root
html
;
}
}
}
dashboard/v2/package.json
View file @
16b81ab7
...
...
@@ -59,6 +59,7 @@
"load-grunt-tasks"
:
"^3.1.0"
,
"grunt-nginx"
:
"~0.2.2"
,
"grunt-contrib-copy"
:
"~0.8.0"
,
"grunt-contrib-clean"
:
"~0.6.0"
"grunt-contrib-clean"
:
"~0.6.0"
,
"proxit"
:
"~0.6.4"
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment