THIS PACKAGE HAS BEEN ABANDONED, DO NOT USE
This package allows you to easily import your Laravel Forge sites to your Oh-Dear! App account.
At the moment it will only import sites from Forge to Oh Dear!
You can install the package via composer:
composer require ohdear/forge-sync
You must publish the configuration file with:
php artisan vendor:publish --provider="OhDear\ForgeSync\ForgeSyncServiceProvider"
This is the content of the file that will be published at config/forge-sync.php
. You should provide an Oh Dear! API token and a Forge API token.
return [
/*
* An Oh Dear! API token.
*
* Learn how to get an API token at the Oh Dear! docs
* https://ohdear.app/docs/api/authentication
*/
'ohdear_api_token' => '',
/*
* A Forge API token.
*
* You can create an API token here:
* https://forge.laravel.com/user/profile#/api
*/
'forge_api_token' => '',
];
Run this command to start the import process. It will ask you which Forge sites should be imported to which Oh Dear! team.
php artisan ohdear:forge-sync
Alternatively you could also run this piece of code:
use OhDear\ForgeSync\ForgeSync;
use OhDear\ForgeSync\Site;
$forgeSync = new ForgeSync(
$ohDearTeamId,
$ohDearApiToken,
$forgeApiToken
);
$forgeSync->sites()->each(function(Site $site) {
$forgeSync->addToOhDear($site);
});
If you have a site on Forge that you do not wish to import into Oh Dear! simply add this line to the Nginx config of that site.
#OH-DEAR-DO-NOT-MONITOR
composer test
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.