Skip to content

Service-Alliance/Service_Phase_1

Repository files navigation

Cloud66 CircleCI

Getting started

  • dependencies: Postgresql and Redis
  • Be sure to have rvm or rbenv
  • be sure to have bundler gem installed.
  • Check that your IDE can handle .editorconfig file
  • bundle install
  • rake db:setup
  • Use Procfile to start application (lookup Foreman, Hivemind or Overmind)

Development

Rails gotchas

  • Avoid using ENV['VARIABLE'] in favor of ENV.fetch('VARIABLE'). So if ENV variable is missing, app will fail during bootup.

Migrations

Please use separate migrations for data/schema changes.

In case of schema changes, use standard Rails functionality:

rails g migration MyNewMigration

In case of data use seed_migration gem, like this:

rails g seed_migration NewDataMigration

Deployment

Server needs to be properly configured for deployment to work.

  • SSH public/private key pair set up
  • deploy user to have access to folders where you want to install the application
  • installed git
  • installed ruby (some ruby manager recommended rbenv/rvm/chruby)
  • installed bundler

Tooling

Jenkins Credentials:

Host Name Jenkins
Public IP 34.226.74.30
Keypair servicealliance-ops-key

Production

Staging

  • hostname : http://staging.digitaljobchart.net
  • auto deployed from master ?? how to access database

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •