Spree-Base is a preconfigured environment for developing a Spree application.
- Install Vagrant
- Install Docker
- Install Ansible -
brew install ansible
- Add
export DOCKER_HOST=tcp://localhost:5555
to your~/.bash_profile
and relaunch your terminal - If using fish, add
set -x DOCKER_HOST "tcp://localhost:5555"
to your '~/.config/fish/config.fish' and relaunch terminal
- Clone repository
cd
into project foldervagrant up
fig up -d postgres
fig run --rm util bundle exec rake db:create
fig run --rm util bundle exec rake db:migrate
fig run --rm util bundle exec rake db:seed
fig run --rm util bundle exec rake spree_sample:load
fig up app
- To start the app, run
vagrant up
thenfig up app
- Creating Gemfile.lock -
docker run --rm -v /app:/usr/src/app -w /usr/src/app ruby:2.1.5 bundle install