Skip to content

fabfad/hello-rails

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hello-rails

This is a demo Ruby on Rails app you can deploy to Skyliner. Here's a guide to getting started:

https://www.skyliner.io/help/quick-start

If you have any trouble, please drop us a line at support@skyliner.io.

Differences from a stock Rails application

  • Depends on the lograge gem, which converts Rails's weirdly verbose logging into production-ready logging using Logstash JSON formatting.
  • Depends on Heroku's rails_12factor gem, which directs the logs to stdout and allows Rails to serve up static assets. (If static asset serving becomes a performance hotspot, we recommend setting up CloudFront.)
  • Commits secrets.yaml to source control. It pulls the production secret base from the SECRET_KEY_BASE environment variable, which is securely managed by Skyliner.
  • Adds quotes to the use of SECRET_KEY_BASE in secrets.yaml, which prevents a secret with all digits from being interpreted as a number.
  • Depends on puma-heroku, which borrows Heroku's recommended Puma configuration.

Setting up a database

  • Follow the directions here to create an RDS instance of your preferred database.
  • Edit the config/database.yml file in your project and modify the production entry to look like the following:
<dev and test stuff here>

production:
  url: "<%= ENV["DATABASE_URL"] %>"
  • In Skyliner, go to the Setting page for your app and select the Configuration section.
  • Click the gear to edit the settings and enter DATABASE_URL in the key field and the database url for your database in the value field.
  • Select the Skyliner environment you want the setting to apply to (QA or Production).
  • Click Update to save your settings.
  • Re-deploy to the environment you are interested in.

About

A demo Ruby on Rails app you can deploy to Skyliner

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Ruby 74.7%
  • HTML 17.6%
  • CSS 4.8%
  • JavaScript 2.2%
  • CoffeeScript 0.7%