AlchemyCMS / alchemy_cms

Alchemy is the Open Source Rails CMS framework for the component based web that can be used as classic server side rendered or headless CMS.
https://www.alchemy-cms.com
BSD 3-Clause "New" or "Revised" License
824 stars 313 forks source link

I can t install Alchemy on my existing Rails spree Project #618

Closed bobysess closed 10 years ago

bobysess commented 10 years ago

Hallo,

I want to use Alchemy on my Project, but when i try to install, i have ever Depencies Problem. I use: Ruby 2.0.0p247 Rails 4.0.2 Spree 2.1.4 and i try to install 'alchemy_cms', github: 'magiclabs/alchemy_cms', branch: '3.0-stable'

robinboening commented 10 years ago

Could you please provide some information details about the problem you have?

bobysess commented 10 years ago

for the installation i added in my gemfile "gem 'alchemy_cms', github: 'magiclabs/alchemy_cms', branch: '3.0-stable' and when i run "bundle install" and this comes out: Bundler could not find compatible versions for gem "sass-rails": In Gemfile: alchemy_cms (>= 0) ruby depends on sass-rails (~> 4.0.2) ruby

sass-rails (4.0.1)

"

tvdeyen commented 10 years ago

This is easily fixed with:

$ bundle update sass-rails

sass-rails 4.0.1 has a bug, so we need at least 4.0.2

bobysess commented 10 years ago

thank very much for the answer. i have runed
$ bundle update sass-rails and it resolve the problem, but when i run bundle install i have the same problem with 'jquery-ui-rails' and when i run
$ bundle update jquery-ui-rails it don t update to the next version and remains the same versin 4.0.5. and the required version is 4.1.1

tvdeyen commented 10 years ago

Probably you have fixated the version in your Gemfile

Can you paste your Gemfile here?

bobysess commented 10 years ago
source 'https://rubygems.org'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.2'

gem 'mysql2'

gem 'thin'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.0'

# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'

# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 4.0.0'

# See https://github.com/sstephenson/execjs#readme for more supported runtimes
gem 'therubyracer', platforms: :ruby

# Use jquery as the JavaScript library
gem 'jquery-rails' , '~> 3.0.0'

# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'

# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 1.2'

group :doc do
  # bundle exec rake doc:rails generates the API under doc/api.
  gem 'sdoc', require: false
end

# Use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.1.2'

# Use unicorn as the app server
# gem 'unicorn'

#use for Uplaod file
gem "jquery-fileupload-rails"

gem 'jquery.fileupload-rails'

# Use Capistrano for deployment
gem 'capistrano', group: :development
gem 'capistrano-rvm'
gem 'capistrano-bundler', '~> 1.1.2'
gem 'capistrano-rails', '~> 1.1'

# Use debugger
# gem 'debugger', group: [:development, :test]

group :development do
  # bundle exec rake doc:rails generates the API under doc/api.
  gem 'pry'
  gem 'sqlite3'
end

gem 'jquery-ui-rails'

gem 'paperclip'
gem 'ckeditor'
gem 'formtastic'

gem 'wkhtmltopdf-binary'
gem 'wicked_pdf'
gem 'non-stupid-digest-assets'
gem 'haml'

gem 'spree', '2.1.4'
gem 'spree_gateway', :git => 'https://github.com/spree/spree_gateway.git', :branch => '2-1-stable'
gem 'spree_auth_devise', :git => 'https://github.com/spree/spree_auth_devise.git', :branch => '2-1-stable'
gem 'spree_i18n', :git => 'https://github.com/spree/spree_i18n.git', :branch => '2-1-stable'
gem 'orm_adapter', '~>0.5.0'

gem 'spree_advanced_checkout', :path => './extensions/spree_advanced_checkout'
gem 'spree_flexi_variants', :path => './extensions/spree_flexi_variants'
gem 'magick_title', :path => './extensions/magick_title'
gem 'spree_project_title', :path => './extensions/spree_project_title'
gem 'spree_banner', :path => './extensions/spree_banner'
gem 'spree_showcase', :path => './extensions/spree_showcase'
gem 'spree_menu', :path => './extensions/spree_menu'
gem 'spree_news_block', :path => './extensions/spree_news_block'
gem 'spree_static_content', :path => './extensions/spree_static_content' ##need ckeditor
gem 'spree_html_invoice', :path => './extensions/spree_html_invoice'
gem 'spree_product_documents', :path => './extensions/spree_product_documents' #need formtastic
gem 'spree_terms_and_conditions', :path => './extensions/spree_terms_and_conditions' #need gem 'haml'
gem 'spree_newsletter', :path => './extensions/spree_newsletter'
gem 'spree_contact_us', :path => './extensions/spree_contact_us'
gem 'spree_related_products', :path => './extensions/spree_related_products'
gem 'spree_dhl_shipping', :path => './extensions/spree_dhl_shipping'
gem 'spree_promotion_roles_rule', :path => './extensions/spree_promotion_roles_rule'
gem 'spree_promotion_tax', :path => './extensions/spree_promotion_tax'
gem 'spree_address_book', :path => './extensions/spree_address_book'
gem 'spree_company_info', :path => './extensions/spree_company_info'
gem 'spree_samples_and_branche', :path => './extensions/spree_samples_and_branche'
gem 'spree_offers', :path => './extensions/spree_offers'
gem 'colorbox-rails', :path => './extensions/colorbox-rails'

gem 'accessible_tooltip', :path => './extensions/accessible_tooltip'

gem 'scrollToFixed_rails', :path => './extensions/scrollToFixed_rails'
gem 'spree_upload', :path => './extensions/spree_upload'

#gem 'alchemy_cms', github: 'magiclabs/alchemy_cms', branch: '3.0-stable'
#gem 'alchemy-devise', github: 'magiclabs/alchemy-devise', branch: '2.0-stable'
#gem 'alchemy_cms', '~> 3.0.0'

#gem 'alchemy_spree', github: 'magiclabs/alchemy_spree', branch: 'master'

#gem 'spree_admin_roles_and_access', :path => './extensions/spree_admin_roles_and_access'

#gem "meta_search"

# NOCH NICHT INSTALLIERT
#
#
#gem 'spree_devise_simple_weight_calculator', :path => './extensions/spree_devise_simple_weight_calculator'
v-fedorov commented 10 years ago

oh my.. :) try updating the gemfile with these

gem 'rails', '4.0.5'
gem 'spree', github: 'spree/spree', branch: '2-1-stable'
gem 'jquery-rails'
gem 'alchemy_cms', github: 'magiclabs/alchemy_cms', branch: '3.0-stable'
gem 'alchemy_spree', github: 'magiclabs/alchemy_spree', branch: 'master'

This looks like an already existing spree project? In that case remove alchemy-devise, or vice versa

gem 'spree_auth_devise', :git => 'https://github.com/spree/spree_auth_devise.git', :branch => '2-1-stable'
gem 'alchemy-devise', github: 'magiclabs/alchemy-devise', branch: 'master'

Cannot have both. I think there is a spree_alchemy gem thats more geared towards using spree_auth_devise.

now, run a bundle update and if youre still hitting errors then you have to search through your './extensions' directory for jquery-ui-rails and update the gemspec version to 4.1.1

Personally I would create a new project with a clean install of alchemy and spree and then carefully plug your current project into it. A lot of these spree extensions contradict the use of alchemy and even couple that have been decommissioned.

tvdeyen commented 10 years ago

Ok, since this seams to be very specific to your project I will close this for now.

If we can narrow this down to an issue in alchemy please provide steps to reproduce and then we will reopen this.