rails-composer
rails-composer copied to clipboard
Rails 5.2.0 - Ruby 2.5.1 - composer fails when composing mysql at higher version
Hello,
Ubuntu server 16.04 - Running Rbenv ruby 2.5.1 - with multiple apps up and running - rails 5.2.0
A recent attempt with current version yields this:
running --> rails new myapp -m https://raw.github.com/RailsApps/rails-composer/master/composer.rb
- Build a railsapps starter example application
- rails-devise no email
- puma same as development
- MySql
- ERB
- none
- Bootstrap 3.3
- add jquery-rails gem
- gmail
- Devise with default modules
- none
- bare
- none
- no disable turbolinks yes set robots.txt yes github no add therubyracer yes
Adding install log and my gems local list gem_list_fail_composer.txt install_log_mysql_fail_composer.txt
I've done the same with SQlite3, no problems.
I already have an app up and running on latest with the latest.
Suggestion:
Composer when detected multiple mysql gems give you an option to select, or give the option to select multiple versions to deploy.
Thanks!
Same here. Did you find any workaround?
Yes, i installed with SQlite3 and manually swapped to MySql later on. it's a simple swap of Gemfile content.
Gemfile
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
ruby '2.5.1'
gem 'rails', '~> 5.2.0'
gem 'mysql2', '0.5.1'
gem 'puma', '~> 3.11'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.2'
gem 'jbuilder', '~> 2.5'
gem 'bootsnap', '>= 1.1.0', require: false
group :development, :test do
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
end
group :development do
gem 'web-console', '>= 3.3.0'
gem 'listen', '>= 3.0.5', '< 3.2'
gem 'spring'
gem 'spring-watcher-listen', '~> 2.0.0'
end
group :test do
gem 'capybara', '>= 2.15', '< 4.0'
gem 'selenium-webdriver'
gem 'chromedriver-helper'
end
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
gem 'bootstrap-sass'
gem 'devise'
gem 'high_voltage'
gem 'jquery-rails'
gem 'therubyracer', :platform=>:ruby
group :development do
gem 'better_errors'
gem 'rails_layout'
end
config/database.yml
development:
adapter: mysql2
encoding: utf8
reconnect: false
database: db_development
pool: 5
host: 127.0.0.1
port: 3306
username: username
password: password
# **socket: /opt/local/var/run/mysql5/mysqld.sock**
# secure_auth: false
# flags:
# - -COMPRESS
# - FOUND_ROWS
# - MULTI_STATEMENTS
Thanks for the speedy reply! I was able to finish the installation and start the app correctly. Cheers.
Awesome :D