ChiliProject is not maintained anymore. Please be advised that there will be no more updates.
We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.
Installation of chli 2.6.0 and database problem
I've installed chili in earlier version and there was no problem. When I tried to install it on Debian yesterday there was some problem with database. I don't know why chili wants to use mysql database. I got this error:
no such file to load -- mysql (MissingSourceFile)
I haven't got installed mysql server, just postgres.
Can anyone help me?
Have you edited your
config/database.yml file to reflect that you want to use postgres and not mysql?
Yes, I have. I've checked the old version of chili I installed some time ago. It is 2.4.0, and there was no problem. I test my new chili with WEBrick server from scripts/ and there is no problem, it works perfectly.:/
I don't know why chili wants to use mysql adapter on production, it's strange.
Indeed, could you post your
# MySQL (default setup). production: adapter: postgresql database: chiliproject host: localhost username: chiliproject password: **_pasword_** port: 5432 encoding: utf8 development: adapter: mysql database: chiliproject_development host: localhost username: root password: encoding: utf8 # Warning: The database defined as "test" will be erased and # re-generated from your development database when you run "rake". # Do not set this db to the same as development or production. test: adapter: mysql database: chiliproject_test host: localhost username: root password: encoding: utf8 test_pgsql: adapter: postgresql database: chiliproject_test host: localhost username: postgres password: "postgres" test_sqlite3: adapter: sqlite3 database: db/test.sqlite3
[Edit Holger Just: Fix formatting]
Sorry for formating, '#' sign must be different interpreted.
Marcin, I edited your post to fix the formatting.
As for your issue, are your sure you are running under production mode? Rails typically defaults to
development. You have to tell it explicitly that you want production mode everytime by running setting
During installation I executed
RAILS_ENV=production bundle exec rake db:migrate
RAILS_ENV=production bundle exec rake redmine:load_default_data
Otherway I think test with WEBrick server could have some problems, or maybe I'm wrong
Also checked this:
root@ares:/srv/www/chiliproject# echo $RAILS_ENV production
You also have to start your webrick like
script/server -e production
If that still doesn't work, please try to remove the
config.ru file from your ChiliProject installation directory.
Note that for production use you should use a real application server like Passenger.
Wow, removing configu.ru fixed my problem, chili works.
Thanks for help!