Pleroma OTP: issue with static dir on instance gen
Ran instance gen with ./bin/pleroma_ctl instance gen --output config/config.exs --output-psql setup_db.psql
and wanted to use a custom directory other than /var/lib/pleroma/static
and it failed:
What directory should custom public files be read from (custom emojis, frontend bundle overrides, robots.txt, etc.)? [/var/lib/pleroma/static] /home/pleroma/static
Writing config to config/config.exs.
Writing the postgres script to setup_db.psql.
** (File.Error) could not make directory (with -p) "/var/lib/pleroma/static": no such file or directory
(elixir) lib/file.ex:314: File.mkdir_p!/1
(pleroma) lib/mix/tasks/pleroma/instance.ex:231: Mix.Tasks.Pleroma.Instance.write_robots_txt/2
(pleroma) lib/mix/tasks/pleroma/instance.ex:207: Mix.Tasks.Pleroma.Instance.run/1
(stdlib) erl_eval.erl:680: :erl_eval.do_apply/6
(elixir) lib/code.ex:240: Code.eval_string/3
Edit: I was using https://git.pleroma.social/api/v4/projects/2/jobs/artifacts/master/download?job=amd64 as of a few minutes ago