Skip to content

upsun project:init does not detect multiple directories #142

@tylers-username

Description

@tylers-username

Not sure if this is expected behavior or not, so I'll report here:

Steps to reproduce

  1. Download Upsun vendorized binary for macos
  2. Copy it to project directory
    • Directory structure:
      # tree -L 2
      ├── backend #flask backend
      │   ├── app
      │   ├── main.py
      │   └── requirements.txt
      ├── frontend # React frontend
      │   ├── README.md
      │   ├── node_modules
      │   ├── package-lock.json
      │   ├── package.json
      │   ├── public
      │   ├── src
      │   ├── tailwind.config.js
      │   └── tsconfig.json
      ├── readme.md
      └── upsun # Upsun Binary
      
  3. Launch: upsun project:init from project root (not within frontend or backend)
    • Select redis-persistent as a service to add
  4. Review created files:
    image
    • .environment
    • .upsun/config.yaml

Expected

  • .environment to be in each app's directory
  • .upsun/config.yaml to include both frontend and backend app

Actual

  • .environment is in the root of the repository
  • .upsun/config.yaml does not include the frontend app

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions