rootinc / laravel-heroku-app-creator
Laravel Heroku App Creator
Installs: 1 899
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >=5.6.4
- aws/aws-sdk-php-laravel: ^3.1
- laravel/framework: >=5.4.0
README
Creates an App on Heroku using the Heroku Quick Deployer, as well as setups simple AWS credentials, and generates an app key.
Normal Installation
composer require rootinc/laravel-heroku-app-creator
- run
php artisan vendor:publish --provider="RootInc\LaravelHerokuAppCreator\AppCreatorServiceProvider"
to install config file toconfig/app_creator.php
- In our routes folder (most likely
web.php
), add
Route::get('/create-app', '\RootInc\LaravelHerokuAppCreator\AppCreator@route');
- In our
.env
addAWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_DEFAULT_REGION and AWS_BUCKET
. The access key and secret key is used to create S3 folders and IAM users, so be sure this programmatic user has the correct permissions. TheAWS_BUCKET
is where all the apps folders will get generated. - Also in our
.env
addIAM_GROUP
, andTEMPLATE_URL
.IAM_GROUP
is the name of the group you want to assign the newly created AWS user for each Heroku app.TEMPLATE_URL
is the url used with Heroku to create a new app. Make sure this repo has an app.json file. Ex:TEMPLATE_URL=https://github.com/rootinc/laravel-heroku-app-creator/tree/master
.
Routing
Route::get('/create-app', '\RootInc\LaravelHerokuAppCreator\AppCreator@route');
First parameter can be wherever you want to route the app creator route. Change as you would like.
Contributing
Thank you for considering contributing to the Laravel Heroku App Creator! To encourage active collaboration, we encourage pull requests, not just issues.
If you file an issue, the issue should contain a title and a clear description of the issue. You should also include as much relevant information as possible and a code sample that demonstrates the issue. The goal of a issue is to make it easy for yourself - and others - to replicate the bug and develop a fix.
License
The Laravel Heroku App Creator is open-sourced software licensed under the MIT license.