LandingPad.rb

LandingPad.rb

LandingPad.rb - "Just add water" landing page

  • Language: Ruby
    Framework: Sinatra
  • Released: Feb 18, 2011
    Last Update: Feb 22, 2011

LandingPad.rb is a simple "landing page" application that takes just a few minutes to setup. It lets you quickly put up a page to collect email addresses or Twitter users for when you are ready to launch your app/product/whatever.

LandingPad.rb can be hosted on Heroku and use MongoHQ to store the contacts -- both of which have free plans that will work fine. Buy a domain and point it to your LandingPad.rb app and you are good to go!

Google Analytics are supported so you can track views and conversion rates for signing up.

Hide

Instructions

What is LandingPad.rb

LandingPad.rb is a simple "landing page" application that takes just a few minutes to setup. It lets you quickly put up a page to collect email addresses or Twitter users for when you are ready to launch your app/product/whatever.

LandingPad.rb can be hosted on Heroku and use MongoHQ to store the contacts -- both of which have free plans that will work fine. Buy a domain and point it to your LandingPad.rb app and you are good to go!

Google Analytics are supported so you can track views and conversion rates for signing up.

How to use LandingPad.rb

1) Setup an account on Heroku (you can use the free account)
Instructions: http://devcenter.heroku.com/articles/quickstart
Make sure you have the pre-reqs: http://devcenter.heroku.com/articles/quickstart#prerequisites

2) Extract LandingPad.rb into a folder

3) Navigate to that folder.

$> ls should show "config.ru landingpad.rb public/ views/" if you are in the right folder

4) Open landingpad.rb in a text editor. You should see a configure block where you can enter the details for your landing page (such as your site's name, a summary, colors, etc).

This is also where you set the admin username and password for accessing your stored contacts -- PLEASE CHANGE THIS!

You can also set your Google Analytics tracking id in this file if you have an account.

5) Once you have edited landingpad.rb to add your app's settings, run the following commands from your project folder:

     git init
     git add .
     git commit -m "setting up landing page"

6) Now create your Heroku app by running from your project folder:

     heroku create
     heroku addons:add mongohq:free

7) Now run git push heroku master to push the code to your Heroku app. Once it's finished, run heroku open to launch a browser and go to your app.

You should see a landing page and be able to enter in an email address or Twitter account name. To view the contact information stored in your app, navigate to http://your-heroku-machine-name.heroku.com/contacts. You will need to enter the username and password that you setup in Step 4.

You should see a table listing the name, type and referal URL for anyone that has signed up for your app.

8) You will probably want a custom domain, following the instructions here http://devcenter.heroku.com/articles/custom-domains to setup your domain to point to your brand-new landing page.

Uhh...something broke

You can try to debug your page on your local machine by installing the correct Ruby gems in the .gems file and running the app using rackup config.ru -p 3456. You can get to it by opening a browser and going to localhost:3456.

Make sure you have all of your settings correct in landingpad.rb.

If you make any changes to the code, make sure to do a git add/git commit and push the changes to heroku.

It looks good, but I want it to be blue

You can modify any of the code, html, css and javascript to customize your page. Just remember to push any changes to Heroku so your live page will be updated.

You need to log-in or create an account
  • Create an account
  • Log-in
Please use your real name.
Activation link will be sent to this address.
Minimum 8 characters
Enter your password again

Clicking this button confirms you read and agreed to the terms of use and privacy policy.

X

Save your watchlist

Fill your details below to receive project updates from your watch list - including new versions, price changes and discounts.

I agree to the terms of use and privacy policy.

License » MIT license Download
or Get a quote

for customization or integration services

  • Nice simple app - the only problem is that the current version of Sinatra no longer includes the app directory in the require path - so require statements have to be amended to refer to './file-to-include' -- additionally Heroku requires the use of Bundle for hosted apps -- and there's no Gemfile in the delivered code.

    These are easily fixed, if you have the experience to recognize the problems.
    PP Pauli Price
    3 years ago, 0 comments
    Was this helpful?
    Flag 3 of 3 people found this review helpful
  • Super easy to set up. Much better than just throwing up a cookie cutter LaunchRock page.
    F Francisco
    3 years ago, 0 comments
    Was this helpful?
    Flag 1 of 1 people found this review helpful
  • The idea for the page is excellent, but I installed this thing with very little Ruby experience and couldn't get it to work with Heroku.
    AB Alex Berman
    3 years ago, 0 comments
    Was this helpful?
    Flag 1 of 1 people found this review helpful
Post a comment

Or enter your name and Email
  • DK David K 3 years ago
    Hi, I seem to be getting an error. I've done everything and even deployed successfully to Heroku. But everytime I run heroku open, I get an H10 application error. When I checked Heroku Logs, it seems to be showing this: `require': no such file to load -- landingpad.rb (LoadError)". Not sure why this is the case?
    • S Sebastian 3 years ago
      was the same for me, just use require './landingpad' (instead of require 'landingpad') in config.ru