File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -196,15 +196,21 @@ var runPowershell = function( cmd ) {
196
196
child . stdin . end ( ) ; //end input
197
197
}
198
198
199
+ // gulp.task('start-neo4j', ['download-neo4j'], shell.task([
200
+ // 'chmod +x ' + neo4jHome + '/bin/neo4j',
201
+ // neo4jHome + '/bin/neo4j start',
202
+ // ]));
203
+
199
204
gulp . task ( 'start-neo4j' , [ 'download-neo4j' ] , function ( ) {
200
205
if ( isWin ) {
201
206
runPowershell ( 'Install-Neo4jServer -Neo4jServer ' + neo4jHome + ' -Name neo4j-js;' +
202
207
'Start-Neo4jServer -Neo4jServer ' + neo4jHome + ' -ServiceName neo4j-js' ) ;
203
- } else {
204
- shell . task ( [
205
- 'chmod +x' + neo4jHome + 'bin/neo4j' ,
208
+ }
209
+ else {
210
+ return gulp . src ( '' ) . pipe ( shell ( [
211
+ 'chmod +x ' + neo4jHome + '/bin/neo4j' ,
206
212
neo4jHome + '/bin/neo4j start' ,
207
- ] ) ;
213
+ ] ) ) ;
208
214
}
209
215
} ) ;
210
216
@@ -213,8 +219,8 @@ gulp.task('stop-neo4j', function() {
213
219
runPowershell ( 'Stop-Neo4jServer -Neo4jServer ' + neo4jHome + ' -ServiceName neo4j-js;' +
214
220
'Uninstall-Neo4jServer -Neo4jServer ' + neo4jHome + ' -ServiceName neo4j-js' ) ;
215
221
} else {
216
- shell . task ( [
222
+ return gulp . src ( '' ) . pipe ( shell ( [
217
223
neo4jHome + '/bin/neo4j stop' ,
218
- ] )
224
+ ] ) ) ;
219
225
}
220
226
} ) ;
You can’t perform that action at this time.
0 commit comments