2017 © Pedro Peláez
 

library forge-sync

Sync Laravel Forge sites with Oh Dear!

image

ohdear/forge-sync

Sync Laravel Forge sites with Oh Dear!

  • Tuesday, June 12, 2018
  • by ohdearapp
  • Repository
  • 3 Watchers
  • 4 Stars
  • 5 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

THIS PACKAGE HAS BEEN ABANDONED, DO NOT USE, (*1)

Import Laravel Forge sites to Oh Dear!

Build Status StyleCI Quality Score Total Downloads, (*2)

This package allows you to easily import your Laravel Forge sites to your Oh-Dear! App account., (*3)

Screencast of Usage, (*4)

At the moment it will only import sites from Forge to Oh Dear!, (*5)

Installation

You can install the package via composer:, (*6)

composer require ohdear/forge-sync

You must publish the configuration file with:, (*7)

``` bash php artisan vendor:publish --provider="OhDear\ForgeSync\ForgeSyncServiceProvider", (*8)


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. ```` php 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' => '', ]; ```` ## Usage Run this command to start the import process. It will ask you which Forge sites should be imported to which Oh Dear! team. ``` bash php artisan ohdear:forge-sync

Alternatively you could also run this piece of code:, (*9)

``` php use OhDear\ForgeSync\ForgeSync; use OhDear\ForgeSync\Site;, (*10)

$forgeSync = new ForgeSync( $ohDearTeamId, $ohDearApiToken, $forgeApiToken );, (*11)

$forgeSync->sites()->each(function(Site $site) { $forgeSync->addToOhDear($site); });, (*12)


### Skipping sites 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


### Testing ``` bash composer test

Changelog

Please see CHANGELOG for more information what has changed recently., (*13)

Contributing

Please see CONTRIBUTING for details., (*14)

Security

If you discover any security related issues, please email support@ohdear.app instead of using the issue tracker., (*15)

Credits

License

The MIT License (MIT). Please see License File for more information., (*16)

The Versions

12/06 2018
19/01 2018
18/01 2018