Skip to content

Update .env file to make configuration easier to manage, and to reduce overrides through commits #21

@idiom-bytes

Description

@idiom-bytes

Problem:

  1. .env.dev is being changed due to commits and the url for staging server is being overriden with localhost
  2. Server endpoints are hard to follow and configure
  3. .env.dev uses a different structure than the rest of our respos. Instead, use .env.sample and .env

Standardize .env usage

Please use .env.sample to communicate possible configurations and .env for the configuration

.env.sample

### Choose a websocket backend URL
AWS_URL_PRODUCTION=http://ec2-16-170-204-1.eu-north-1.compute.amazonaws.com
AWS_URL_STAGING=http://ec2-16-170-204-2.eu-north-1.compute.amazonaws.com
AWS_URL_DEV=http://localhost

### Websocket url
AWS_URL=your_url

.env

### Websocket url
AWS_URL=your_url

DoD:

  • .env.sample and .env structure follows the remainder of our repos
  • .env.sample contains all possible URLs
  • .env contains final URL configuration
  • .env.sample explains the config intuitively

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions