Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Hosting your app on a VPS - for RailsGirls

Hosting your app on a VPS - for RailsGirls

This slidedeck is complementary to our step-by-step guide on configuring and installing a VPS during the RailsGirls workshop: https://git.io/OPWEng

Michiel Sikkes

January 11, 2015
Tweet

Other Decks in Programming

Transcript

  1. Agenda • Show you how hosting an application works. •

    Experience setting up your own server.
  2. $ heroku create $ git push heroku master Heroku makes

    it really easy to put your app online:
  3. And your app is magically running on some funky URL:

    http://funky-fox58.herokuapp.com
  4. So we're going to teach you to build your own

    little magic to host your app, with just one server.
  5. In the physical world, servers look like this. This is

    a server, that is a server, they are all servers.
  6. What software is on a VPS to run your application?

    Webserver program (nginx) Database (MySQL PostgreSQL Something else) Ruby on Rails application server (Passenger) Your Application code and files
  7. What software is on a server to run your application?

    Webserver program (nginx) Your Application code and files
  8. What software is on a server to run your application?

    Webserver program (nginx) Database (MySQL PostgreSQL Something else) Your Application code and files
  9. What software is on a server to run your application?

    Webserver program (nginx) Database (MySQL PostgreSQL Something else) Ruby on Rails application server (Passenger) Your Application code and files
  10. Webserver program (nginx) Database (MySQL PostgreSQL Something else) Ruby on

    Rails application server (Passenger) Your Application code and files visitor's browser
  11. Webserver program (nginx) Database (MySQL PostgreSQL Something else) Ruby on

    Rails application server (Passenger) Your Application code and files visitor's browser http://coolapp.com
  12. Webserver program (nginx) Database (MySQL PostgreSQL Something else) Ruby on

    Rails application server (Passenger) Your Application code and files visitor's browser http://coolapp.com
  13. Webserver program (nginx) Database (MySQL PostgreSQL Something else) Ruby on

    Rails application server (Passenger) Your Application code and files visitor's browser http://coolapp.com
  14. Webserver program (nginx) Database (MySQL PostgreSQL Something else) Ruby on

    Rails application server (Passenger) Your Application code and files visitor's browser http://coolapp.com
  15. Webserver program (nginx) Database (MySQL PostgreSQL Something else) Ruby on

    Rails application server (Passenger) Your Application code and files visitor's browser http://coolapp.com
  16. Webserver program (nginx) Database (MySQL PostgreSQL Something else) Ruby on

    Rails application server (Passenger) Your Application code and files visitor's browser http://coolapp.com
  17. Server access with SSH $ ssh [email protected] $ ssh [email protected]

    Every server has it's own IP address or domain name.
  18. Workshop • Set up your own server using SSH •

    Deploy an application to your server with Capistrano
  19. Next steps (1) • DigitalOcean http://digitalocean.com • Linode http://linode.com •

    Intercity - https://intercityup.com • Cloud66 - http://cloud66.com