Skip to content

Instantly share code, notes, and snippets.

@dcuadraq
Last active January 11, 2018 07:20
Show Gist options
  • Save dcuadraq/84d057f19116110e09453fa204e800be to your computer and use it in GitHub Desktop.
Save dcuadraq/84d057f19116110e09453fa204e800be to your computer and use it in GitHub Desktop.
How to install Solidus

#Solidus

Install imagemagick for thumbnail generation

brew install imagemagick

Create a new rails app

rails new solidus -d postgresql

Add solidus gems

gem 'solidus'
gem 'solidus_auth_devise'

Run Bundler to install the gems

bundle install

Create development and test databases

rake db:create

Run generators to create necessary configuration files and migrations

bundle exec rails g spree:install --migrate=false --sample=false --seed=false # remove options to install sample data
bundle exec rails g solidus:auth:install
bundle exec rake railties:install:migrations

Default admin email and password are admin@example.com : test123

Run migrations

bundle exec rake db:migrate

Run server to check installation

bundle exec rails server

localhost:3000 and localhost:3000/admin should work

It is recommended to create a new admin and delete the default one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment