Bmoe
Bmoe

Reputation: 978

bundle exec not working in Windows

I am following the Redmine Install Tutorial

on step 5 it says

Step 5 - Session store secret generation This step generates a random key used by Rails to encode cookies storing session data thus preventing their tampering. Generating a new secret token invalidates all existing sessions after restart.

bundle exec rake generate_secret_token

I'm on Windows 10. When I try to do bundle exec in CMD, I get cannot find the path specified. For whatever reason I cannot find any reference to this problem (perhaps I'm not searching for the right terms). I can't imagine I'm the first to experience this but in any case, how can I resolve it? I can check ruby version, gem version, and rails version just fine. I've been able to do steps 1-4 fine so I don't get why I can't run bundle exec. I suppose this is implied but I can't do step 6 either.

Upvotes: 1

Views: 1676

Answers (1)

limco
limco

Reputation: 1420

Do you have rake rubygem installed? Try to run this in CMD:

gem install rake

Then run the command again:

bundle exec rake generate_secret_token

I'm looking at this: source

Upvotes: 2

Related Questions