I have data I need to seed my heroku app with for production. When I run the heroku run rake db:seed command I get an error, "rake aborted! no such file in directory"
I've tried creating a custom rake task and I get the same error.
The beginning of my rake task is as follows:
require 'csv'
CSV.foreach("/Users/username/Documents/Apps Folder/myapp/seed_file.txt") do |row|
...
end
Not sure if my issue is where I have my CSV file located, or if it's something else, I've looked at other related questions on stackoverflow and they haven't been able to fix my problem. Does anyone know how to solve this issue?
EDIT: I've added the error message I receive in terminal when I try to run my custom rake task below:
Running `rake customraketask` attached to terminal... up, run.8243
rake aborted!
No such file or directory -/Users/username/Documents/Apps Folder/myapp/app/assets/files/seed_file.txt
/app/lib/tasks/customraketask.rake:13:in `block in <top (required)>'
Tasks: TOP => customraketask
(See full trace by running task with --trace)