craftcms / nitro

Speedy local dev environment for @craftcms.
https://getnitro.sh
MIT License
178 stars 24 forks source link

Renaming sites to apps #424

Closed jasonmccallister closed 2 years ago

jasonmccallister commented 2 years ago

Description

Adds a new apps config that replaces the sites config option.

All commands were also updated.

Also added a global --app flag to existing commands (e.g. nitro --app myapp.nitro ssh) and removed the site arg functionality (e.g. nitro start mysite.nitro). Instead the --app flag should be used.

To update an existing config from sites to apps, make the following changes:

Before

sites:
    - hostname: cloud-api.nitro
      path: ~/Repositories/cloud-api
      webroot: public
      version: "8.0"

After

apps:
    - hostname: cloud-api.nitro
      path: ~/Repositories/cloud-api
      webroot: public
      php_version: "8.0"

Related issues