Граф коммитов

6 Коммитов

Автор SHA1 Сообщение Дата
Vijay Budhram 58638da7eb
chore(deps): Update fxa-dev-launcher to use esm (#11239) 2021-12-06 10:53:02 -05:00
Danny Coates 1ea7fdd312
chore(dev): wait for containers on 'yarn start' (#11119)
On M1 we currently sometimes need to 'yarn restart services' after a 'yarn start' before things start working. Maybe if we wait for the containers to be responsive before starting services we can avoid this. The important one seems to be mysql.
2021-11-22 16:58:30 -08:00
Danny Coates a62532cc50
chore(ci): slow down pm2 startup (#11084)
* feat(cli): add 'yarn delete services' command

sometimes you may want to leave all your DBs running but completely start over with fresh services. The pm2 restart command doesn't fully reset the environment and sometimes that's what you want. Delete lets us remove the service from pm2 so we can start it fresh.

* chore(ci): slow down pm2 startup

I've noticed ci failures where the services don't even get started up completely happening more frequently. During the brief time that circleci showed resource graphs the pm2 startup pegged both cpu and memory. If we wait for the services that have a lot of building at startup to finish before starting the next service maybe we'll have better stability.

* chore(tests): remove support-panel from functional test startup
2021-11-19 11:52:33 -08:00
yogita 9b438e1cbc
chore(scripts): Update package-scripts.js 2021-04-09 04:32:39 +05:30
Danny Coates 3a054dfc3f
refactor(pm2): restructure our pm2 configs
why: several reasons...

- to have a unified approach and pattern for:
  - debugging
  - fs watching for local dev
  - running services in dev
  - configuring services in dev

- to improve the initial clone and subsequent `npm ci` experience
- to make future work on tooling easier
2020-04-14 14:38:38 -07:00
Danny Coates a4b3996349
refactor(npm-scripts): refactored npm scripts for better ergonomics
1. renamed _scripts/*.sh to use kebab-case
2. linted _scripts with shellcheck
3. added _dev directory and moved pm2 json files there
4. added nps and package-scripts.js
  - this allows us to do nice things like: `npm start debug firefox`
  - I'd like to expand this further but it's a start
5. refactored the install scripts to make `npm install` nicer
6. renamed pm2 process names for easier control
  - can use `pm2 logs auth` instead of the id
2020-04-13 16:17:36 -07:00