View
250
Download
1
Tags:
Embed Size (px)
Citation preview
`
Heroku Python:Transitioning a Django Application
Richard Tibbetts (@tibbetts)SellerCrowd (@sellercrowd)
`
SellerCrowd – Pseudonymous Q&A
• Social site for salespeople• Built using Python/Django/Tastypie/jQuery
`
System Administration Sucks
• I’m a terrible Sysadmin
• Even with Linode, Ubuntu, Chef
• I wish I had Heroku
Thou shalt not covet
thy neighbors scalable
deployment platform
`
What is Heroku?
• Cloud application platform• Originally for Rails applications• Scalability• Lots of add-ons.
`
Everything in a subdirectory
• All the django app code
mkdir sellercrowdgit mv scsite templates static \ sellercrowd
`
syncdb, migrate, etc
• heroku run python sellercrowd/manage.py syncdb
• heroku run python sellercrowd/manage.py migrate
• heroku run python sellercrowd/manage.py loadavatars
`
Heroku Transition Results
• Developer Time: About 5 hours• Remarkably smooth for a first gen platform• Git integration and heroku command line tools
are slick• Next steps:– Performance testing– Queues and workers– Add-ons: Search, logging, monitoring, realtime