Hosting to Heroku and Amazon S3 Service

How to Setup Amazon S3 in a Django Project:
https://simpleisbetterthancomplex.com/tutorial/2017/08/01/how-to-setup-amazon-s3-in-a-django-project.html
Amazon S3 Storage:
https://django-storages.readthedocs.io/en/latest/backends/amazon-S3.html
S3 Static & Media Files for Django:
https://www.codingforentrepreneurs.com/blog/s3-static-media-files-for-django/
Configuring Django Apps for Heroku:
https://devcenter.heroku.com/articles/django-app-configuration
Heroku Python Support:
https://devcenter.heroku.com/articles/python-support
Youtube: Hosting and Deploying app on Heroku:
https://www.youtube.com/watch?v=MoX36izzEWY
How To Deploy Django App on Heroku:
https://www.codementor.io/jamesezechukwu/how-to-deploy-django-app-on-heroku-dtsee04d4

//Disable the static file for Heroku
heroku config:set DISABLE_COLLECTSTATIC=1
//Create seed for db
python manage.py dumpdata information.Slider --format json --indent 4 > information/fixtures/sliders.json

//To load data to db
heroku run python manage.py loaddata applications/fixtures/servicetypes.json

See the git status : git status
Add all to git: git add –all
Commit to git: git commit -m “Your commit”
Push git to heroku: git push heroku master
Force Push git to heroku: git push heroku master --force
Migrate db in heroku: heroku run python manage.py migrate
Run Console in heroku: heroku run bash
Remove hidden .git: rm -rf .git


Comments

Popular posts from this blog

Generate SHA-1 and SHA-256 for Debug and Release android app

Transfer file to Server and vice versa

How to Import and Export MySQL Database Command line in Linux