Update readme
continuous-integration/drone/push Build is passing Details

This commit is contained in:
toqvist 2024-04-05 09:45:04 +02:00
parent 9d3e600eae
commit 318db9322f
1 changed files with 20 additions and 0 deletions

View File

@ -2,6 +2,26 @@
Astroad is a pre-configured setup for Astro and Payloadcms, designed to make it easy for you to start building your website. With Astroad, you'll have a complete development environment that you can run locally using Docker. This setup simplifies the testing and development of your website before deploying it to a production environment.
## Important notes
### Adding dependencies
1. When adding a dedpendency to astro or payload, you must regenerate the yarn.lock file for the dev server toinstall the dependencies.
2. Regenerate the lock file:
`cd astro` or `cd payload`
`rm yarn.lock`
`yarn install`
3. Restart dev server `yarn dev`
## Dev server getting stuck
Sometimes the dev script gets stuck, for an unknown reason:
```
[+] Running 3/0
✔ Container astroad-mongo Running 0.0s
✔ Container astroad-payload Running 0.0s
✔ Container astroad-astro Running
```
Running `yarn stop` and then `yarn dev` should resolve the issue.
## Prerequisites
Before getting started with Astroad, make sure you have the necessary software installed: