- Ruby 2.2.5 or greater
- Mysql
- memcached
- ImageMagick
- HTTP server with ruby support (Passenger, Puma...)
- checkout source :
git clone https://github.com/osaris/sp-gestion.git
- go into master :
cd sp-gestion
- install bundler :
gem install bundler
- install all required gem :
bundle install
-
copy
config/sp-gestion.sample.ymltoconfig/sp-gestion.ymland change its content to fit your setup -
edit
config/database.yml(if necessary) -
create database, load schema and import seed data :
rake db:setup
- setup local dns for *.dev resolution or configure www.sp-gestion.dev and cpi-demo.sp-gestion.dev via hostfile
- browse
www.sp-gestion.devfor home - browse
cpi-demo.sp-gestion.devfor a sample account (login : [email protected] | pass : demospg)
You can switch cpi-demo (or any other account) to demo mode by setting to true the demo flag on the Station model.
Then you can generate demo data with rake spg:reset_demo_stations.
Development environment is configured to use Mailcatcher.
Simply run gem install mailcatcher then mailcatcher to get started.
- prepare database :
rake db:test:prepare
- run
rspec
- Capistrano is included in the
Gemfileand a sample configuration file is delivered inconfig/deploy.sample.rb.
- if you want to use newrelic you must have an account (http://newrelic.com/)
and generate the
config/newrelic.ymlfile by runningnewrelic installin the root folder of the application.
SP-Gestion is released under the MIT License.



