Webdev Week 5
Deployment
Course Announcements
Deadline to submit Lab 1:
Monday at 12pm (noon)
Programming club - Tuesdays, this room, 6pm
Please check your grades (see my email) to make sure I have not missed anything
Rapid development - running code is always the latest
No configuration - just use a port #
Problem - only works on your computer
Firewalls, nonstandard port numbers, LAN IP addresses mean this isn't a good way to publish a website.
Also, what if your laptop isn't turned on/connected to the internet?
Basic server architecture
Server somewhere connected directly to public Internet.
Have to manually configure & update code on server via SSH/FTP, etc.
Simple, but hard to scale and failure-prone
Cloud-based architecture
Heroku
One of many available PaaS (Platform as a Service) offerings
Oriented towards ease-of-use, scalability
Offers a free plan
Deploying to Heroku
Configure your app to use Postgres instead of SQLite
Push your code with Git
Setup your database on the server with "rake db:migrate"
Done!
Made with Slides.com