Project

General

Profile

How to add redmine startup commands

Added by Guilherme Mesquita about 9 years ago

Hi,

I have redmine running smoothly with passenger.

and my environment:

Remine 2.5.2
Passenger 5.0.20
Ruby 2.0.0
Rails 3.2.19

I need to set up a plugin made for my company

After install the plugin i need to run:

bundle exec rails server &
bundle exec rake jobs:work &
bundle exec clockwork plugins/casync/lib/clock.rb

I don't need to run "bundle exec rails server &" because my redmine is running with passenger.
When I run the last two lines ... the plugin work but if I finish the terminal session they kill the processes

How can i add the both when I start my apache server ?!

bundle exec rake jobs:work &
bundle exec clockwork plugins/casync/lib/clock.rb

sorry my poor english