Demo: launch-app.plexm.com¶ ↑
Local api keys are kept in a ‘.env’ file that is not committed to the git repo. The ‘.env.example’ file is provided as boilerplate.
Production api key should be handled responsibly(use ‘heroku config:set’ feature) and not commited to git.
-
MANDRILL_APIKEY
-
MANDRILL_USERNAME
-
FROM_EMAIL
-
PRODUCTION_DOMAIN
-
Domain
-
Mandrill API key and username
-
from email
-
Allowed HTTP methods: GET, HEAD, OPTIONS, PUT, POST, PATCH, DELETE
-
simple AWS CloudFront CORS setup: blog.cloud66.com/cross-origin-resource-sharing-cors-blocked-for-cloudfront-in-rails/
Set required variable values in /app/helpers/home_helper.rb
-
Uses metamagic. See github.com/lassebunk/metamagic
-
Open graph ogp.me/
-
Twitter cards(and open graph fallback) dev.twitter.com/cards/markup
Served via vendor/assets
Included via gem: github.com/Aufree/bootstrap-material-design
Included via font-awesome-rails gem
Split tests are run by injecting a piece of JavaScript that adjusts the page as required.
URL parameter ‘i’ is the default tracking parameter. The User.tracker attribute will be set as the parameter’s value if present.
-
Example URL ‘launchapp.example.com/?i=my-facebook’
A tracking cookie is store for 3 days when a tracking parameter is used.
-
JavaScript should set user_tracker input value to ‘i’ parameter
-
figure out situation with DEPRECATED _path in mailer views, in favor of _url