Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
Adding deploy to heroku button (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
silverbux committed Jun 14, 2016
1 parent 9ea87e8 commit c0fabc3
Show file tree
Hide file tree
Showing 2 changed files with 147 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Expand Up @@ -85,6 +85,25 @@ $ artisan ng:config name #New config inside angular/config/
* [BOWER] (http://bower.io/)
* [NPM] (https://www.npmjs.com/)

## Deploy to heroku

[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)

1. Click deploy button
2. After build and "successfully deployed", Click Manage App
3. Go to settings and click "Reveal Config Vars"
4. Set necessary config for DB based from CLEARDB_DATABASE_URL or from your custom database
5. Execute migration and db seed with the following commands

**Database Migration**
```
$ heroku run php artisan migrate --app your_app_name
```
**Database Seeds**
```
$ heroku run php artisan migrate --app your_app_name
```

## Contributing

Thank you for contributing to this repository.
Expand Down
128 changes: 128 additions & 0 deletions app.json
@@ -0,0 +1,128 @@
{
"name": "Laravel Angular Admin",
"description": "Laravel + Angularjs + Bootstrap + AdminLTE binded by Gulp workflow Admin Dashboard Boilerplate / Starter.",
"keywords": [
"laravel",
"angular",
"admin",
"boilerplate",
"starter kit"
],
"website": "http://silverbux.github.io/laravel-angular-admin/",
"repository": "https://github.com/silverbux/laravel-angular-admin/tree/deploy-to-heroku",
"scripts": {
"postdeploy": "composer install"
},
"addons": [
"cleardb"
],
"env": {
"API_PREFIX": {
"description": "API prefix.",
"value": "api",
"required": true
},
"APP_ENV": {
"description": "API prefix.",
"value": "production",
"required": true
},
"DB_DATABASE": {
"description": "Database Name.",
"value": "setup later",
"required": false
},
"DB_HOST": {
"description": "Database Host.",
"value": "setup later",
"required": false
},
"DB_USERNAME": {
"description": "Database Username.",
"value": "setup later",
"required": false
},
"DB_PASSWORD": {
"description": "Database Password.",
"value": "setup later",
"required": false
},
"MAIL_DRIVER": {
"description": "Mail driver (optional).",
"value": "smtp",
"required": false
},
"MAIL_ENCRYPTION": {
"description": "Mail Encryption (optional).",
"value": "tls",
"required": false
},
"MAIL_FROM": {
"description": "Email addresss to use when sending mail. (optional)",
"value": "laravel@admin.com",
"required": false
},
"MAIL_FROM_NAME": {
"description": "Name for the email address. (optional)",
"value": "laravel admin",
"required": false
},
"MAIL_HOST": {
"description": "Host of the mail server.",
"required": false
},
"MAIL_USERNAME": {
"description": "Mail server username.",
"required": false
},
"MAIL_PASSWORD": {
"description": "Mail server password.",
"required": false
},
"MAIL_PORT": {
"description": "Port of mail server.",
"required": false
},
"FACEBOOK_CLIENT_ID": {
"description": "facebook client id for oauth login (optional).",
"required": false
},
"FACEBOOK_CLIENT_SECRET": {
"description": "facebook client secret for oauth login (optional).",
"required": false
},
"FACEBOOK_REDIRECT": {
"description": "facebook redirect url for oauth login (optional).",
"required": false
},
"GITHUB_CLIENT_ID": {
"description": "github client id for oauth login (optional).",
"required": false
},
"GITHUB_CLIENT_SECRET": {
"description": "github client secret for oauth login (optional).",
"required": false
},
"GITHUB_REDIRECT": {
"description": "github redirect url for oauth login (optional).",
"required": false
},
"GOOGLE_CLIENT_ID": {
"description": "google client id for oauth login (optional).",
"required": false
},
"GOOGLE_CLIENT_SECRET": {
"description": "google client secret for oauth login (optional).",
"required": false
},
"GOOGLE_REDIRECT": {
"description": "google redirect url for oauth login (optional).",
"required": false
}
},
"buildpacks": [
{
"url": "https://github.com/heroku/heroku-buildpack-multi"
}
]
}

0 comments on commit c0fabc3

Please sign in to comment.