Using ./launcher from Terminal
-
I want to run the import category file as shown on this discourse doc page https://meta.discourse.org/t/administrative-bulk-operations/118349#heading--8
first thing is open a terminal and run
cd /var/discourse ./launcher enter app
then from the example
rake import:file["category-export-2019-05-16-052430.json"]
I've tried to figure it out but I'm not a great linux admin nor am I familiar at all with rails.
Is it possible to use
./launcher enter app
command from the terminal launched by cloudron for discourse app? -
@briankb-0 you can use
ls
andcd
look around, or use the file manager to look around and find the launcher file that is executable then note it's directory.Once you launch the terminal it will drop you into /app/code which you can validate with
pwd
If you paste some screenshots, we can guide you from there.
-
@briankb-0 the
launcher
script only works with Discourse's own packaging stuff i.e if you use https://github.com/discourse/discourse_docker . It does not work in Cloudron, we have our own packaging at git.cloudron.io/cloudron/discourse-appGenerally, you should be able to do everything using rake or bundle exec since Discourse is just a rails app. See https://docs.cloudron.io/apps/discourse for some examples.