Skip to content

Add a command to generate/copy config files into a new project from a template #1

@TylerRick

Description

@TylerRick

What to call the new command?

  • vhost new (like a /resource/new page)
  • vhost add?
  • vhost generate (like rails g)
  • vhost create

You would give it a name and any other options needed by the template (perhaps a port), and it would generate a config file for this new virtual host and stick it in your config/dev. (Or should it append the server { } block to existing server.conf if there is one? Maybe that could be an option too.)

By default, this command will generate from templates shipped with this tool. But in the future, we can allow users to use their own custom templates. Probably add a -t/--template option that lets you point to a file or dir containing multiple files.

In the even later future, you should be able to have a ~/.vhostrc file that configures it to use your own custom template without having to specify it on the command line each time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions