Support #708
Install Spree eCommerce on FreeBSD
Description
This is a guide on installing Spree on FreeBSD 9.
Prepare the Environment¶
- Make sure the system is up to date:
sudo pkg update && sudo pkg upgrade
- Install a few dependencies:
sudo pkg install ruby rubygem-rails git ImageMagick-nox11
Install Spree¶
- Switch to the home directory:
cd ~
- Install the spree gem:
gem install spree
- Install the spree_auth_devise gem:
gem install spree_auth_devise
- Create a new rails application:
rails new example_site
- Install spree into the new rails app:
spree install example_site
- Install the spree auth gem in the new rails app:
bundle exec tails g spree:auth:install
- Run the test server to check that it was installed correctly:
rails s -b 0.0.0.0
- The frontend is at http://spree.example.com:3000
- The admin panel is at http://spree.example.com:3000/admin
Install Piwik Support¶
- Edit the Gemfile:
vi Gemfile
- And add the following to the end:
gem 'spree_piwik'
- And add the following to the end:
- Install the gem dependencies:
bundle install
- Initialize the spree_piwik module
bundle exec rails g spree_piwik:install
- Edit the spree_piwik initializer file:
vi config/initializers/spree_piwik.rb
- And uncomment and adjust the piwik values accordingly:
Spree::Piwik::Config[:piwik_url] = "piwik.example.com" Spree::Piwik::Config[:piwik_id] = 4
- And uncomment and adjust the piwik values accordingly: