WebFaction
Community site: login faq

I created a simple rake task for my app. However when I try to run I get the following error:

[xxxx@xxxx app_name]$ bundle exec rake rake_task.rake

rake aborted!

cannot load such file -- lib/tasks/rake_task.rake

My Rakefile looks like this:

rake tasks

require 'lib/tasks/rake_task.rake'

and my rake task like this:

task :rake_task do puts "hello " end

I suspect it has something to do with the path where the rake_task is located. Can anyone help me?

asked 29 Feb '12, 15:10

bunker
111
accept rate: 0%


Are you executing the export commands that load the correct path info for your ruby app?

  1. Switch to the directory of the Ruby application. Enter cd $HOME/webapps/{app} where app is the name of the application as it appears in the WebFaction control panel.

  2. Enter export PATH=$PWD/bin:$PATH and press Enter.

  3. Enter export GEM_HOME=$PWD/gems and press Enter.

  4. Entr export RUBYLIB=$PWD/lib and press Enter.

permanent link

answered 29 Feb '12, 17:12

johns
5.4k412
accept rate: 23%

thanks for the answer John, but yes I executed the export commands prior already and it isn't working

(29 Feb '12, 17:20) bunker

We can continue our discussion with the support ticket as we must discuss details that would be insecure here. When we resolve the issue, if you would like to post the answer here with your personal info removed you may.

(29 Feb '12, 18:37) johns
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×47
×6
×4

question asked: 29 Feb '12, 15:10

question was seen: 3,470 times

last updated: 29 Feb '12, 18:37

                              
WEBFACTION
REACH US
SUPPORT
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM