diff options
| author | jpl | 2017-05-05 10:07:33 +0200 |
|---|---|---|
| committer | Robert | 2017-05-05 15:27:00 +0200 |
| commit | 290b42e713e982c5bc900d25017ca7eb3ce7f585 (patch) | |
| tree | 37493accc503d1f8233e4d4c3843ca1cf4119152 /INSTALL.md | |
| parent | 7f2c15f363b1c16590ec2859a9b672cf52ef1ca3 (diff) | |
| parent | 2df84619b9b5950a3bbbb5550d3cc03ba1489df2 (diff) | |
| download | chouette-core-290b42e713e982c5bc900d25017ca7eb3ce7f585.tar.bz2 | |
minor INSTALL.md enhancements
Diffstat (limited to 'INSTALL.md')
| -rw-r--r-- | INSTALL.md | 32 |
1 files changed, 28 insertions, 4 deletions
diff --git a/INSTALL.md b/INSTALL.md index 4e052a0db..2d23a70ce 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -9,7 +9,7 @@ and install that version. Example with [rvm](https://rvm.io/): - rvm install 2.3.0 + rvm install 2.3.1 Add the bundler gem @@ -28,6 +28,7 @@ Go into your local repro and install the gems bundle or + gem install libv8 -v '<version>' -- --with-system-v8 bundle @@ -63,7 +64,18 @@ When promted for the password enter the highly secure string `chouette`. #### Install node.js packages - bundle exec rake npm:install + bundle exec rake npm:installndle + +#### Check installation + +* Run tests + + bundle exec rake spec + bundle exec rake teaspoon + +* Start local server + + bundle exec rails server ### Authentication @@ -73,24 +85,36 @@ Use the database authentication or get an invitation to [STIF Portail](http://st ### Run seed -Run : + +#### Basic Database Content bundle exec rake db:seed + Two users are created : stif-boiv@af83.com/secret and stif-boiv+transporteur@af83.com/secret +#### Synchronize With STIF + If you have access to STIF CodifLigne and Reflex : +* Launch Sidekiq + + bundle exec sidekiq + +* Execute the Synchronization Tasks + bundle exec rake codifligne:sync bundle exec rake reflex:sync +**N.B.** These are asynchronious tasks, you can observe the launched jobs in your [Sidekiq Console](http://localhost:3000/sidekiq) + To create Referential with some data (Route, JourneyPattern, VehicleJourney, etc) : bundle exec rake referential:create # Troubleshooting -If PG complains about illegal type `hstore` in your tests that is probably because the shared extension is not installed, here is what to do: +If Postgres complains about illegal type `hstore` in your tests that is probably because the shared extension is not installed, here is what to do: bundle exec rake db:test:purge |
