diff --git a/Procfile b/Procfile deleted file mode 100644 index 830e01eb..00000000 --- a/Procfile +++ /dev/null @@ -1 +0,0 @@ -web: vendor/bin/heroku-php-nginx -C nginx.conf public \ No newline at end of file diff --git a/README.md b/README.md index d1df9768..8c75ac14 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Cachet [![Deploy](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy) +# Cachet [![StyleCI](https://styleci.io/repos/26730195/shield)](https://styleci.io/repos/26730195/) [![Build Status](https://img.shields.io/travis/cachethq/Cachet.svg?style=flat-square)](https://travis-ci.org/cachethq/Cachet) @@ -18,7 +18,6 @@ - Markdown support for incident messages. - RESTful API. - Translated into several languages. -- Easy Heroku deployment. - Metrics. - Cross-database support: MySQL, PostgreSQL and SQLite. diff --git a/app.json b/app.json deleted file mode 100644 index fb1d272a..00000000 --- a/app.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "name": "Cachet", - "description": "An open source status page system.", - "keywords": [ - "cachet", - "laravel", - "status", - "page" - ], - "website": "https://cachethq.io", - "logo": "https://raw.githubusercontent.com/cachethq/assets/79336a33c24b28c470a89742671e0e291813d004/images/icon/Cachet-Icon.png", - "success_url": "/setup", - "repository": "https://github.com/cachethq/Cachet", - "addons": [ - "heroku-postgresql" - ], - "env": { - "ENV": { - "value": "heroku", - "description": "Warning: Do not modify this value on Heroku deployments." - }, - "BUILDPACK_URL": { - "value": "https://github.com/heroku/heroku-buildpack-php", - "description": "Warning: Do not modify this value on Heroku deployments." - }, - "CACHE_DRIVER": { - "value": "apc", - "description": "Warning: Do not modify this value on Heroku deployments." - } - }, - "scripts": { - "postdeploy": "php artisan migrate --env=heroku; php artisan key:generate;" - } -} diff --git a/app/Console/Commands/OneClickDeployCommand.php b/app/Console/Commands/OneClickDeployCommand.php deleted file mode 100644 index 9ec52b93..00000000 --- a/app/Console/Commands/OneClickDeployCommand.php +++ /dev/null @@ -1,94 +0,0 @@ -migrate = $migrate; - - parent::__construct(); - } - - /** - * Execute the console command. - * - * @return int|null - */ - public function fire() - { - if ($this->migrate) { - $migrations = $this->runMigrations(); - - segment_track('Installation', [ - 'event' => 'Heroku Deployment', - ]); - - return $migrations; - } - - $this->info('Please run "php artisan migrate" to finish the installation.'); - } - - /** - * Run the migrations. - * - * @return int - */ - protected function runMigrations() - { - $options = [ - '--database' => $this->input->getOption('database'), - '--force' => $this->input->getOption('force'), - '--seed' => $this->input->getOption('seed'), - ]; - - return $this->call('migrate', $options); - } - - /** - * Get the console command options. - * - * @return array - */ - protected function getOptions() - { - return [ - ['database', null, InputOption::VALUE_OPTIONAL, 'The database connection to use.'], - ['force', null, InputOption::VALUE_NONE, 'Force the operation to run when in production.'], - ['seed', null, InputOption::VALUE_NONE, 'Indicates if the seed task should be re-run.'], - ]; - } -} diff --git a/app/Providers/ConsoleServiceProvider.php b/app/Providers/ConsoleServiceProvider.php index e14765ce..8080b42f 100644 --- a/app/Providers/ConsoleServiceProvider.php +++ b/app/Providers/ConsoleServiceProvider.php @@ -3,7 +3,6 @@ namespace CachetHQ\Cachet\Providers; use CachetHQ\Cachet\Console\Commands\FixPermissionsCommand; -use CachetHQ\Cachet\Console\Commands\OneClickDeployCommand; use Illuminate\Support\ServiceProvider; class ConsoleServiceProvider extends ServiceProvider @@ -33,9 +32,5 @@ class ConsoleServiceProvider extends ServiceProvider return new FixPermissionsCommand($storageDirectory, $databaseDirectory, $databasePath, $databaseDefault); }); - - $this->app->singleton('CachetHQ\Cachet\Console\Commands\OneClickDeployCommand', function ($app) { - return new OneClickDeployCommand($app->environment('heroku')); - }); } } diff --git a/composer.json b/composer.json index b70c1092..c4815cbe 100644 --- a/composer.json +++ b/composer.json @@ -51,8 +51,7 @@ "post-install-cmd": [ "php artisan clear-compiled", "php artisan optimize", - "chmod -R 755 storage", - "php artisan cachet:one-click-deploy" + "chmod -R 755 storage" ], "post-update-cmd": [ "php artisan clear-compiled",