This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| redmine_commands [2014/08/25 06:02] – created admin | redmine_commands [2015/11/23 12:29] (current) – [Redmine related commands] admin | ||
|---|---|---|---|
| Line 10: | Line 10: | ||
| rake redmine: | rake redmine: | ||
| - | + | Run Migration for single plugin starting with Version 0 | |
| + | |||
| + | rake db: | ||
| + | |||
| + | Generate Migration: | ||
| + | |||
| + | rails generate migration IssueAddEditor | ||
| + | |||
| + | Set DEV Enviroment | ||
| + | |||
| + | Add following to config/ | ||
| + | |||
| + | # GET RID OF RESTART FOR EACH AND EVERY BLOODY CODE CHANGE! | ||
| + | ENV[' | ||
| + | |||
| + | Update Commit history: | ||
| + | < | ||
| + | ./ | ||
| + | </ | ||
| + | ===== Cron Reposman ===== | ||
| + | |||
| + | Test run cron: | ||
| + | |||
| + | < | ||
| + | env -i sh -c "cd / | ||
| + | </ | ||
| + | |||
| + | Working cronJob example (pay attention to the **ruby** location): | ||
| + | |||
| + | < | ||
| + | */1 * * * * / | ||
| + | </ | ||
| + | ====== Redmine related code ====== | ||
| + | |||
| + | ===== Use Redmine built-in working-days feature ===== | ||
| + | |||
| + | < | ||
| + | |||
| + | <code ruby> | ||
| + | include Redmine:: | ||
| + | </ | ||
| + | |||
| + | Use it: | ||
| + | |||
| + | <code ruby> | ||
| + | @workDaysOnly = working_days(from, | ||
| + | </ | ||
| + | |||
| + | Get assignable users: | ||
| + | |||
| + | @issue.assignable_users | ||