Project

General

Profile

syntax highlighter and plugin directory, ubuntu server

Added by Tomas Åberg almost 14 years ago

Hello.

I'm a beginner in this whole subversion and redmine stuff.
Anyway, I've set up a subversion server and I've managed to get redmine up and running on a Ubuntu 9.10 server.

I take every problem step by step but there are two problems I can't seem to solve and google won't answer my questions.

first, when I go to Administration -> Info the only warning is on
Plugin assets directory writable
Where is this directory located?
Is it vendors/plugins?
It was easy to find the file folder but this was a hard one.

second, I cant seem to get any syntax-highlighter work.
I've read that CodeRay is what I should use, I use Python and bash.
I 've run sudo apt-get install libcoderay-ruby1.8 and then sudo gem install coderay
What do I do wrong?


Replies (6)

RE: syntax highlighter and plugin directory, ubuntu server - Added by Tomas Åberg almost 14 years ago

sorry, forgot to mention:
I have ruby1.8, redmine 0.9.3 and it was coderay-0.9.2 that got installed.

RE: syntax highlighter and plugin directory, ubuntu server - Added by Felix Schäfer almost 14 years ago

The folder you are looking for is REDMINE/public/plugin_assets (off the top of my head, so the name could be a little off), this directory needs to be writeable by the user running redmine.

Regarding the syntax highlighter, coderay is bundled, so there is nothing you need to install for that to work. Unfortunately, the bundled version of coderay shows its age, and I can't say for sure that it highlights python. There have recently been several changes to the way redmine handles highlighting which makes updating the bundled version of coderay easier (there was some crazy hacky stuff involved that basically made updating the bundled coderay a nightmare), but I'm afraid the update will only be shipped with version:1.0 (see #3359 for more info).

RE: syntax highlighter and plugin directory, ubuntu server - Added by Tomas Åberg almost 14 years ago

Thanks for your reply!
It worked.

Well, I guess I have to wait for the 1.0 release then, I don't mind.

off topic; I've read that redmine is able to update it self to newest release, is that true?

I had some hard time getting this to work, I bet I could make it again but I rather don't, so it would be nice if it could auto-upgrade itself.

RE: syntax highlighter and plugin directory, ubuntu server - Added by Felix Schäfer almost 14 years ago

There is no "auto-update" per se, if you mean a button somewhere in the preferences that says "Update me!", there isn't. What is provided though is a means to simply update the database and so on, so the update basically consists of updating the files for redmine (either through svn if you installed it from svn, or through a release package if you haven't), updating the database (for which you just issue a migrate command, rails uses a versioning of sorts for the database schema to make the update pretty fool-proof), reloading redmine (either trhough restarting the webserver that serves it or whatever).

Anyway, long story short: it shouldn't be a problem to update, just make sure you have a backup to be on the safe side ;-)

RE: syntax highlighter and plugin directory, ubuntu server - Added by Tomas Åberg almost 14 years ago

Thank you for your help and your explanations.

I guess I'll be back when it comes to update/migrate the database.

I will see to that I have a backup.

Do you suggest I backup everything I have in my redmine folder?(/var/www/redmine)
I'm not sure where I have my database, it's a MySQL database, right?

RE: syntax highlighter and plugin directory, ubuntu server - Added by mythos mint almost 14 years ago

+1

It will be nice to highlight SQL code. I'll go donate some money to help out the cause :)

As for upgrading I went from 0.8.7 to 0.9.3 by following the current information on the upgrade page. We only use one plug-in right now so maybe that made it easier.

Anyway here are the steps I took if it helps. (I tried it on a test server first and kept the old server running just in case)

-install bitnami+redmine

-install the newissuealert plugin (follow normal plugin install steps)

-restart redmine service make sure it's working

-back up the blank database just in case

-restore the database from redmine sql dump

-rename some tables for the upgrade:

        mysql> rename table member_roles to member_roles_saved
        mysql> rename table groups_users to groups_users_saved

-upgrade the database:

    rake db:migrate RAILS_ENV=production 

-upgrade plugins + rails    

    rake db:migrate:upgrade_plugin_migrations RAILS_ENV=production 
    rake db:migrate_plugins RAILS_ENV=production 

-clear cache sessions

    rake tmp:cache:clear
    rake tmp:sessions:clear

-restart and have redmine
    (1-6/6)