Jaco Theron writes:

> Hi Marius,
>
> Can you maybe advise me on what configuration I need to change in order for
> this command below to perform the production and not development?
>
>    [gitorious@mars gitorious]$ bundle exec rake db:schema:load


Jaco,
Sorry for falling behind on the mailing list over the last couple of
days :-/

One thing that is *really, really important* and will *save you a lot of
time* is to use the binary stubs that ship with Gitorious, inside the
bin/ folder of your Gitorious root. These scripts will:

- set up the correct RAILS_ENV
- make sure you're running with the correct permissions. If you're
  running the commands with another user than is defined in
  gitorious.yml it will exit with failure, unless you're running
  as root, in which case it will change to that user
- the scripts can be run regardless what your current directory is

Now, to answer your question:

  $GITORIOUS_ROOT/bin/rake db:schema:load

should do the trick.

Cheers,
- Marius

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]

Reply via email to