Created
August 16, 2013 05:51
-
-
Save saikiranmothe/6247597 to your computer and use it in GitHub Desktop.
Spree Installation -- Spree Application Template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rbconfig' | |
require 'open-uri' | |
gsub_file 'Gemfile', "gem 'jquery-rails'", "gem 'jquery-rails', '~> 2.2.1'" | |
gsub_file 'Gemfile', "# gem 'therubyracer', :platforms => :ruby", "gem 'therubyracer', :platforms => :ruby" | |
if File.read("#{destination_root}/Gemfile") !~ /assets.+coffee-rails/m | |
gem "coffee-rails", :group => :assets | |
end | |
#Coping Rails Logo To Admin Interface Logo | |
#Spree::Config[:admin_interface_logo] path | |
copy_file "app/assets/images/rails.png", "app/assets/images/admin/bg/spree_50.png" | |
#Prawn | |
gem 'prawnto',:git => '[email protected]:saikiranmothe/prawnto.git' | |
#Spree Core | |
gem 'spree', '2.0.1' | |
gem 'spree_gateway', :git => 'https://github.com/spree/spree_gateway.git', :branch => '2-0-stable' | |
gem 'spree_auth_devise', :git => 'https://github.com/spree/spree_auth_devise.git', :branch => '2-0-stable' | |
# Spree Internlization Extension | |
gem 'spree_i18n', :git => 'git://github.com/spree/spree_i18n.git', :branch => '2-0-stable' | |
#gem 'spree_invoicing Extension' | |
gem 'spree_invoicing',:git => '[email protected]:saikiranmothe/spree_invoicing_stable.git' | |
#Product Import with CSV. | |
#gem 'spree_csv_import' , :git => "https://github.com/saikiranmothe" | |
#gem 'spree_csv_import',:path => "/home/sai.kiran/Projects" | |
run 'bundle install' | |
#################################################### | |
#Running Spree Generator Commands | |
#Installing Spree into Application without sample data | |
generate 'spree:install --sample=false' | |
generate 'spree_i18n:install' | |
initializer 'spree_config.rb', <<-CODE | |
SpreeI18n::Config.available_locales = [:en] | |
SpreeI18n::Config.supported_locales = [:en] | |
CODE | |
generate 'spree_invoicing:install' | |
if yes?("Do you want to create a AdminUser (Yes/No)?") | |
rake 'spree_auth:admin:create' | |
end | |
say <<-eos | |
################################################################ | |
Your new E-SHOP application is ready to go. | |
################################################################ | |
eos | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment