File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ before_script:
8
8
- " export DISPLAY=:99.0"
9
9
- " sh -e /etc/init.d/xvfb start"
10
10
- sleep 3
11
- - grunt # start a Web server
11
+ - grunt connect:testserver # start a Web server
12
12
- sleep 3
13
13
14
14
script :
Original file line number Diff line number Diff line change @@ -84,6 +84,13 @@ module.exports = function (grunt) {
84
84
livereload :true ,
85
85
open : true
86
86
}
87
+ } ,
88
+ testserver : {
89
+ options : {
90
+ port : 3030 ,
91
+ base : '.' ,
92
+ keepalive : true
93
+ }
87
94
}
88
95
} ,
89
96
@@ -113,7 +120,7 @@ module.exports = function (grunt) {
113
120
114
121
grunt . initConfig ( grunt . util . _ . extend ( taskConfig , userConfig ) ) ;
115
122
116
- grunt . registerTask ( 'default' , [ 'connect' , 'watch' ] ) ;
123
+ grunt . registerTask ( 'default' , [ 'connect:server ' , 'watch' ] ) ;
117
124
118
125
grunt . registerTask ( 'build' , [
119
126
'jshint' , 'concat' , 'uglify'
You can’t perform that action at this time.
0 commit comments