Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • pleroma pleroma
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 646
    • Issues 646
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 86
    • Merge requests 86
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PleromaPleroma
  • pleromapleroma
  • Issues
  • #1082
Closed
Open
Issue created Jul 12, 2019 by dashie@dashieContributor

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

Edited Jul 12, 2019 by dashie
Assignee
Assign to
Time tracking