Programmatically add new Sites with Sites Module
brunsi - 1 month ago
Hey Guys, I wanted to add new sites via an API Endpoint in my PyroCMS installation. As a scaffold I already installed the sites module. I created a new Site:
$site = SiteModel::create($data); with all the necessary data. After this I wanted to start the installation of site asynchronously which does not work:
\Artisan::queue('install', [ '--app' => $data['reference'], '--ready' => true ]);
After some time I only got my process killed:  3529 killed php artisan queue:work
Any ideas on that? ..
EDIT: When I disable command queueing and run it by hand: php artisan install --app=foo --ready it works as usual. Even after waiting my queue to have run several minutes no database table was created -> install command seems to have not started.