-
Notifications
You must be signed in to change notification settings - Fork 0
Install
atalargo edited this page Sep 14, 2010
·
2 revisions
In your application rails directory :
./script/plugin install git://github.com/atalargo/ServerState.git
Create a file server_state.rb in the config/initializers directory and write in the line:
ServerState::Backend.use_backend('Ar')
Replace ‘Ar’ by the backend id available (Ar for ActiveRecord backend, Memcache for Memcache backend)
If you use ActiveRecord backend, launche the command
./script/generate server_state
This generates the migration used by the backend and after (if your database is configured) :
pre. rake db:migrate
to propage the migration