Skip to content

Redirect output to a file #22

Open
@richcorbs

Description

@richcorbs

I'm trying to redirect the output of a command to a file so that it can be served. Is this possible?

  route /domains {
    root * /var/www/localhost
    exec /bin/ls /var/www > /var/www/localhost/domains {
      pass_thru
    }
    file_server /domains
  }

The /var/www/localhost/domains file exists but never gets populated and there are no errors on the server.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions