Skip to content

Commit e4a43b5

Browse files
committed
Merge branch 'main' of github.com:digital-entropy/laravel-nge
2 parents e90beb1 + a577cc1 commit e4a43b5

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

bin/nge

+7
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,13 @@ if [ $1 == "app_crun" ] || [ $1 == "app_rrun" ] ; then
375375
display_help
376376
fi
377377

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+
378385
if declare -f "$1" > /dev/null ; then
379386
"$@" # call function verbatim
380387
else

src/NgeServiceProvider.php

+6
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ class NgeServiceProvider extends ServiceProvider
1717
public function boot()
1818
{
1919
$this->registerCommands();
20+
21+
if ($this->app->runningInConsole()) {
22+
$this->publishes([
23+
__DIR__ . '/../bin/nge' => $this->app->basePath('nge'),
24+
], ['nge', 'nge-bin']);
25+
}
2026
}
2127

2228
/**

0 commit comments

Comments
 (0)