0

I was trying to install GitLab using

https://github.com/gitlabhq/gitlabhq/blob/master/doc/install/installation.md

It in the "Configure it" section at

Copy the example Rack attack config

sudo -u git -H cp config/initializers/rack_attack.rb.example config/initializers/rack_attack.rb

with the error

cp: cannot stat `config/initializers/rack_attack.rb.example': No such file or directory

2
  • Make sure you are in your app's directory when running the command (because it is using a relative path)
    – MrYoshiji
    Oct 24, 2013 at 15:54
  • ls: cannot access /home/git/gitlab/config/initializers/rack_attack.rb.example: No such file or directory
    – pheon
    Oct 25, 2013 at 12:46

1 Answer 1

0

Rack attack only exists on gitlab 6.2-stable. So before running this command make sure you are on the proper branch. To do so type "git checkout 6-2-stable" on the root of the repository.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.