~/discourse needs to be the working directory when you execute import scripts, otherwise they will fail. In your case the following will work:
cd ~/discourse
ruby script/import_scripts/csv_importer.rb
~/discourse needs to be the working directory when you execute import scripts, otherwise they will fail. In your case the following will work:
cd ~/discourse
ruby script/import_scripts/csv_importer.rb