Skip to content

Frontend dev server respond very slowly if using .env file from example #7385

Open
@hongquan

Description

@hongquan

Describe the bug

If running frontend server on a cloud VM, the server responds very slowy. If running on localhost, it is normal.

To Reproduce

  1. Clone the open-event-frontend source to a cloud server
  2. Copy .env.example file to .env
  3. Update API_HOST setting in .env to point to backend server
  4. Update docker-compose.yml to use eventyay/open-event-frontend:development image.
  5. Run open-event-frontend with docker-compose
  6. Try visiting http://server-ip:4200

Expected behaviour

The page should load fast.

Screenshots

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context

It is normal (fast) if we copy the .env from old server, with additional settings.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions