Deploying Rails 4 in production on windows apache MySQL
From experience: the best thing to do is to forget about windows deployment. If this is not an option, then maybe look into JRuby and Warbler. Just don't expect:
- much help from the community (because "nobody" deploys on windows)
- comfortable worfkflow
- stuff that works out of the box
Also i don't see why you would need XAMPP?
If you are at your first attempts on deploying I'd recommend you Heroku.
Heroku
The nice benefit is you can install addons
(eg. a mysql database
) in a matter of clicks:
- https://elements.heroku.com/
Steps are really easy:
Briefly:
# 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
After a while you may realize although it's easy to deploy you'll want more tuning and probably better pricing.
At that point usually comes AWS, which has a good balance of all this, I'd recommend you Elastic Beanstalk.
- Install EB CLI 3
- Setup git
- $ eb init
- $ eb use your-environment-name
- $ eb deploy
- $ eb ssh # to enter into the machine