Code Monkey home page Code Monkey logo

test-skyliner's Introduction

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 [email protected].

Differences from a stock Rails application

  • Writes logs to STDOUT.
  • Serves static assets from the Rails process itself. (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.
  • Manages web and worker processes using Foreman.

Setting up background workers

  • Edit Procfile to include a worker process. If you uncomment the example, you'll need a Rake task named jobs:work.
  • Edit the Dockerfile's CMD to increase the number of worker processes.

N.B.: Worker processes run on the same instances as the web processes, so budget accordingly when selecting an instance type.

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.

Repo created by Skyliner app templates at 2017-02-09T22:33:09.583Z

test-skyliner's People

Contributors

skyliner-template avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.