Deploy Rails 4 in production on windows apache MySQL

We deployed Rails 4.1.0 / Ruby 2.1.6 on a Windows 12 server in development mode with MySQL using the WeBrick web server. Now we want to deploy the application in a production environment using rails 4.1.0, ruby ​​2.1.6, a Windows 12 server, MySQL 5.6 server and apache with Mongrel or XAMPP

Could you point out steps / suggestions and ideas to help deploy our rail application in production.

+4
source share
2 answers

From experience: it’s best to forget about deploying Windows. If this is not an option, then maybe look at JRuby and Warbler. Just don't expect:

  • great help to the community (because "nobody" is being deployed in windows)
  • worfkflow
  • ,

, XAMPP?

+2

, Heroku.

Heroku

, addons (, a mysql database) :
- https://elements.heroku.com/

:

:

# Install the `Heroku Toolbelt`
# inside Gemfile: gem 'rails_12factor', group: :production
# [git init & commit]
$ heroku login
$ apps:create my-app-name # run `heroku create --help` for further help
$ heroku addons:create jawsdb # mysql addon for `heroku`
$ git push heroku master
$ heroku run rake db:schema:load

AWS

, , , , , .
AWS, , Beanstalk.

  • EB CLI 3
  • git
  • $eb init
  • $eb use your-environment-name
  • $eb deploy
  • $eb ssh #
+1

All Articles