File tree 2 files changed +13
-0
lines changed
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -375,6 +375,13 @@ if [ $1 == "app_crun" ] || [ $1 == "app_rrun" ] ; then
375
375
display_help
376
376
fi
377
377
378
+ # check if docker-compose.yml exists
379
+ if [ ! -f " docker-compose.yml" ]; then
380
+ echo " docker-compose.yml not found. Have you run ${YELLOW} artisan nge:install${NC} ?" >&2
381
+
382
+ exit 1
383
+ fi
384
+
378
385
if declare -f " $1 " > /dev/null ; then
379
386
" $@ " # call function verbatim
380
387
else
Original file line number Diff line number Diff line change @@ -17,6 +17,12 @@ class NgeServiceProvider extends ServiceProvider
17
17
public function boot ()
18
18
{
19
19
$ this ->registerCommands ();
20
+
21
+ if ($ this ->app ->runningInConsole ()) {
22
+ $ this ->publishes ([
23
+ __DIR__ . '/../bin/nge ' => $ this ->app ->basePath ('nge ' ),
24
+ ], ['nge ' , 'nge-bin ' ]);
25
+ }
20
26
}
21
27
22
28
/**
You can’t perform that action at this time.
0 commit comments