Skip to content

Commit 9660361

Browse files
committed
Publish config file on boot
1 parent dc48509 commit 9660361

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

src/ElasticBeanstalkQueueWorkerProvider.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ public function register()
2121
public function boot()
2222
{
2323
$this->publishes([
24-
__DIR__.'/.ebextensions' => base_path('/.ebextensions')
24+
__DIR__.'/.ebextensions' => base_path('/.ebextensions'),
25+
__DIR__.'/elasticbeanstalkworker.php' => config_path('elasticbeanstalkworker.php')
2526
], 'ebworker');
2627
}
2728
}

src/elasticbeanstalkworker.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
return array(
4+
/*
5+
* The path of the supervisord.conf file to be used INSTEAD OF generating one from environmental variables. Note that this can be null if you do not have one.
6+
*
7+
* This path is RELATIVE to the root of your application.
8+
* EX:
9+
* Absolute Path: /Users/dev/coding/MyProject/config/mysupervisord.conf
10+
* Path you put in 'supervisorConfigPath': config/mysupervisord.conf
11+
*/
12+
'supervisorConfigPath' => null
13+
);

0 commit comments

Comments
 (0)