Skip to content

Commit

Permalink
Heroku deploy default admin created
Browse files Browse the repository at this point in the history
Heroku deploy default admin created
  • Loading branch information
Anjaneyulu authored and ashwin31 committed Jul 25, 2016
1 parent 705a9f7 commit c6da9f1
Show file tree
Hide file tree
Showing 2 changed files with 93 additions and 6 deletions.
49 changes: 49 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,55 @@ Installation
DISQUSSHORTNAME="Your Disquss Short Name"

export DISQUSSHORTNAME
# google api key for short url

API_KEY="google api key"

export API_KEY

# google captcha

GOOGLE_CAPTCHA_SITE_KEY="Site key"

export GOOGLE_CAPTCHA_SITE_KEY

GOOGLE_CAPTCHA_SECRET_KEY="Secret key"

export GOOGLE_CAPTCHA_SECRET_KEY
# Google Analytics Account

GOOGLE_ANALYTICS_ID="UA-123456789"

export GOOGLE_ANALYTICS_ID

# Google Login
GP_CLIENT_ID="google client id"
export GP_CLIENT_ID

GP_CLIENT_SECRET="secret key"

export GP_CLIENT_SECRET
# Facebook Login
FB_APP_ID="facebook app id"

export FB_APP_ID

FB_SECRET="023df180c6d868e76a02aec17134c843"

export FB_SECRET
# Default E-mail

DEFAULT_EMAIL="[email protected]"

export DEFAULT_EMAIL


3. Use virtualenv to install requirements::

Expand Down
50 changes: 44 additions & 6 deletions app.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,46 @@
{
"name": "Django Blog",
"description": "Self-hosted blog app",
"repository": "https://github.com/MicroPyramid/django-blog-it",
"scripts": {
"postdeploy": "python sandbox/manage.py makemigrations && python sandbox/manage.py migrate"
}
"name": "Django Blog",
"description": "Self-hosted blog app",
"repository": "https://github.com/MicroPyramid/django-blog-it",
"scripts": {
"postdeploy": "python sandbox/manage.py makemigrations && python sandbox/manage.py migrate && echo \"from django.contrib.auth.models import User; User.objects.create_superuser('Admin001', '[email protected]', 'admin001')\" | python sandbox/manage.py shell"
},
"env": {
"API_KEY": {
"description": "micro url ",
"value": "AIzaSyANPi_ULytUHdU4UKtlVmb_Jo1_N29IwTE"
},
"GOOGLE_CAPTCHA_SITE_KEY": {
"description": "google captcha site key",
"value": "6LczhSUTAAAAAEGXEzXenG9LTpRgWj5kZ5HKUsys"
},
"GOOGLE_CAPTCHA_SECRET_KEY": {
"description": "google captcha secret key",
"value": "6LczhSUTAAAAAPcdeBD4YSJfijBsoI1T2rNiXB-D"
},
"GOOGLE_ANALYTICS_ID": {
"description": "google analytics Id",
"value": "UA-1232342342"
},
"GP_CLIENT_ID": {
"description": "Google client login Id",
"value": "51531256941-jbi840coio2vg8q1mht5bmuq002p2kt8.apps.googleusercontent.com"
},
"GP_CLIENT_SECRET": {
"description": "Google client secret key",
"value": "757UNcQ3Py03QVFMm4Wg5tsE"
},
"FB_APP_ID": {
"description": "Facebook app id",
"value": "1578441772473570"
},
"FB_SECRET": {
"description": "Facebook secret key",
"value": "023df180c6d868e76a02aec17134c843"
},
"DEFAULT_EMAIL": {
"description": "default email",
"value": "[email protected]"
}
}
}

0 comments on commit c6da9f1

Please sign in to comment.