Best tools, materials & practices to onboard a hoarde of new users?

Hey Alan,

You need to put the file in the lib/tasks folder of the main Discourse Rails application. This is where you will also find other folders like app/, config/ and files like Gemfile, Gemfile.lock, Rakefile etc. You cannot just download it and run it from a random folder, as it will need the Discourse Rails application to run. This is also why you get the error you posted above, since the script cannot find the Rakefile file, which is needed to run the script (and it doesn’t need just that file, it will need the entire Rails application too).

Once you’ve copied the file into the right folder, you can run it with rake user_importer:check[/path/to/users.csv].

For example, when you’ve created a CSV file users.csv and save it in the tmp/ folder, which you can find in the Discourse Rails application folder (which is also where you’ve just saved the script in the lib/tasks folder). You can now run the script as follows:

rake user_importer:check[tmp/users.csv]

Let me know if this works.

إعجاب واحد (1)