Project

General

Profile

Feature #2684

foreman-rake command

Added by Dominic Cleal almost 10 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Packaging
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

We have three main ways of running rake commands in 1.2:

  • bundle exec rake on source or Debian installs
  • scl enable ruby193 'rake ..' or ruby193-rake on EL6 or SCL installs
  • rake on Fedora installs

Personally I've found it hard to write docs for these as every time a rake command is mentioned, I have to explain which variant to use on which OS. If we didn't, people would copy and paste and it wouldn't work.

Solution: add a foreman-rake command, much like ruby193-rake, but that runs the correct thing. We can change what command it runs via the packaging in exactly the same way as foreman.spec modifies dbmigrate today.

Associated revisions

Revision 642a41b3 (diff)
Added by Dominic Cleal over 9 years ago

refs #2684 - add foreman-rake script to /usr/sbin

Revision 86df2a8a (diff)
Added by Dominic Cleal over 9 years ago

fixes #2684 - add foreman-rake script to /usr/sbin

History

#1 Updated by Dominic Cleal almost 10 years ago

Other nice enhancements would be:
  • cd ~foreman first
  • sudo or su to foreman, to prevent tmp/ permission problems and postgresql ident auth
  • default to RAILS_ENV=production

#2 Updated by Dominic Cleal over 9 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Dominic Cleal
  • Target version set to 1.3.0

#3 Updated by Dominic Cleal over 9 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF