Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

DeoTShephertz/App42PaaS-Rails-MySQL-Sample

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

App42PaaS-Rails-MySQL-Sample

Sample Rails App with MySQL for App42 PaaS Platform

Getting Start with App42

  1. Setup infrastructure for required environment
  2. Create service
  3. Deploy a Ruby on Rails application

Setup infrastructure for required environment

$ app42 setupInfra   

Prerequisite production environment configuration

Gemfile(app_root_dir/Gemfile)

If you are use a different database in development. Create or change the production group to include mysql, Ensure the MYSQL gem is defined in your Gemfile

group :production do 
  gem 'mysql2'
end

config

In config/environments/production.rb change

config.assets.compile = false => config.assets.compile = true

and

config.serve_static_assets = false => config.serve_static_assets = true

and uncomment below configuration.

config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx

Create service

$ app42 createService

DB Configure for Production environment (application_root_dir/config/database.yml)

adapter: mysql2
host: <host>
port: <port>
database: <database name> 
username: <user_name>
password: '<password>'

Deploy a Ruby on Rails application

$ app42 deploy

Get application details:

$ app42 appInfo --app AppName    

Visit your application:

About

Sample Rails App with MySQL for App42 PaaS Platform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 78.3%
  • CSS 18.1%
  • JavaScript 2.7%
  • CoffeeScript 0.9%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.