Skip to content

Commit c0fabc3

Browse files
committed
Adding deploy to heroku button (silverbux#44)
1 parent 9ea87e8 commit c0fabc3

File tree

2 files changed

+147
-0
lines changed

2 files changed

+147
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,25 @@ $ artisan ng:config name #New config inside angular/config/
8585
* [BOWER] (http://bower.io/)
8686
* [NPM] (https://www.npmjs.com/)
8787

88+
## Deploy to heroku
89+
90+
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)
91+
92+
1. Click deploy button
93+
2. After build and "successfully deployed", Click Manage App
94+
3. Go to settings and click "Reveal Config Vars"
95+
4. Set necessary config for DB based from CLEARDB_DATABASE_URL or from your custom database
96+
5. Execute migration and db seed with the following commands
97+
98+
**Database Migration**
99+
```
100+
$ heroku run php artisan migrate --app your_app_name
101+
```
102+
**Database Seeds**
103+
```
104+
$ heroku run php artisan migrate --app your_app_name
105+
```
106+
88107
## Contributing
89108

90109
Thank you for contributing to this repository.

app.json

Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
{
2+
"name": "Laravel Angular Admin",
3+
"description": "Laravel + Angularjs + Bootstrap + AdminLTE binded by Gulp workflow Admin Dashboard Boilerplate / Starter.",
4+
"keywords": [
5+
"laravel",
6+
"angular",
7+
"admin",
8+
"boilerplate",
9+
"starter kit"
10+
],
11+
"website": "http://silverbux.github.io/laravel-angular-admin/",
12+
"repository": "https://github.com/silverbux/laravel-angular-admin/tree/deploy-to-heroku",
13+
"scripts": {
14+
"postdeploy": "composer install"
15+
},
16+
"addons": [
17+
"cleardb"
18+
],
19+
"env": {
20+
"API_PREFIX": {
21+
"description": "API prefix.",
22+
"value": "api",
23+
"required": true
24+
},
25+
"APP_ENV": {
26+
"description": "API prefix.",
27+
"value": "production",
28+
"required": true
29+
},
30+
"DB_DATABASE": {
31+
"description": "Database Name.",
32+
"value": "setup later",
33+
"required": false
34+
},
35+
"DB_HOST": {
36+
"description": "Database Host.",
37+
"value": "setup later",
38+
"required": false
39+
},
40+
"DB_USERNAME": {
41+
"description": "Database Username.",
42+
"value": "setup later",
43+
"required": false
44+
},
45+
"DB_PASSWORD": {
46+
"description": "Database Password.",
47+
"value": "setup later",
48+
"required": false
49+
},
50+
"MAIL_DRIVER": {
51+
"description": "Mail driver (optional).",
52+
"value": "smtp",
53+
"required": false
54+
},
55+
"MAIL_ENCRYPTION": {
56+
"description": "Mail Encryption (optional).",
57+
"value": "tls",
58+
"required": false
59+
},
60+
"MAIL_FROM": {
61+
"description": "Email addresss to use when sending mail. (optional)",
62+
"value": "laravel@admin.com",
63+
"required": false
64+
},
65+
"MAIL_FROM_NAME": {
66+
"description": "Name for the email address. (optional)",
67+
"value": "laravel admin",
68+
"required": false
69+
},
70+
"MAIL_HOST": {
71+
"description": "Host of the mail server.",
72+
"required": false
73+
},
74+
"MAIL_USERNAME": {
75+
"description": "Mail server username.",
76+
"required": false
77+
},
78+
"MAIL_PASSWORD": {
79+
"description": "Mail server password.",
80+
"required": false
81+
},
82+
"MAIL_PORT": {
83+
"description": "Port of mail server.",
84+
"required": false
85+
},
86+
"FACEBOOK_CLIENT_ID": {
87+
"description": "facebook client id for oauth login (optional).",
88+
"required": false
89+
},
90+
"FACEBOOK_CLIENT_SECRET": {
91+
"description": "facebook client secret for oauth login (optional).",
92+
"required": false
93+
},
94+
"FACEBOOK_REDIRECT": {
95+
"description": "facebook redirect url for oauth login (optional).",
96+
"required": false
97+
},
98+
"GITHUB_CLIENT_ID": {
99+
"description": "github client id for oauth login (optional).",
100+
"required": false
101+
},
102+
"GITHUB_CLIENT_SECRET": {
103+
"description": "github client secret for oauth login (optional).",
104+
"required": false
105+
},
106+
"GITHUB_REDIRECT": {
107+
"description": "github redirect url for oauth login (optional).",
108+
"required": false
109+
},
110+
"GOOGLE_CLIENT_ID": {
111+
"description": "google client id for oauth login (optional).",
112+
"required": false
113+
},
114+
"GOOGLE_CLIENT_SECRET": {
115+
"description": "google client secret for oauth login (optional).",
116+
"required": false
117+
},
118+
"GOOGLE_REDIRECT": {
119+
"description": "google redirect url for oauth login (optional).",
120+
"required": false
121+
}
122+
},
123+
"buildpacks": [
124+
{
125+
"url": "https://github.com/heroku/heroku-buildpack-multi"
126+
}
127+
]
128+
}

0 commit comments

Comments
 (0)