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 ) {
196196 child . stdin . end ( ) ; //end input
197197}
198198
199+ // gulp.task('start-neo4j', ['download-neo4j'], shell.task([
200+ // 'chmod +x ' + neo4jHome + '/bin/neo4j',
201+ // neo4jHome + '/bin/neo4j start',
202+ // ]));
203+
199204gulp . task ( 'start-neo4j' , [ 'download-neo4j' ] , function ( ) {
200205 if ( isWin ) {
201206 runPowershell ( 'Install-Neo4jServer -Neo4jServer ' + neo4jHome + ' -Name neo4j-js;' +
202207 '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' ,
206212 neo4jHome + '/bin/neo4j start' ,
207- ] ) ;
213+ ] ) ) ;
208214 }
209215} ) ;
210216
@@ -213,8 +219,8 @@ gulp.task('stop-neo4j', function() {
213219 runPowershell ( 'Stop-Neo4jServer -Neo4jServer ' + neo4jHome + ' -ServiceName neo4j-js;' +
214220 'Uninstall-Neo4jServer -Neo4jServer ' + neo4jHome + ' -ServiceName neo4j-js' ) ;
215221 } else {
216- shell . task ( [
222+ return gulp . src ( '' ) . pipe ( shell ( [
217223 neo4jHome + '/bin/neo4j stop' ,
218- ] )
224+ ] ) ) ;
219225 }
220226} ) ;
You can’t perform that action at this time.
0 commit comments