This commit is contained in:
@@ -14,11 +14,20 @@ Useful commands:
|
||||
```bash
|
||||
cd ~/tmp/progcode/web
|
||||
npm install
|
||||
ADMIN_PORT=3333 npm run admin:posts
|
||||
node scripts/buildDatabase.mjs
|
||||
npm run dev -- --port 3000
|
||||
npm run build
|
||||
```
|
||||
|
||||
Local posts admin:
|
||||
|
||||
- run from `web/` with `npm run admin:posts`;
|
||||
- open `http://127.0.0.1:3333`;
|
||||
- it edits posts as Markdown and saves generated `contentHtml` to `web/data/articles.json`;
|
||||
- uploaded files are stored in `web/public/assets/uploads/`;
|
||||
- it lives in `local-admin/`, outside the Next.js app, and `.dockerignore` excludes it from Docker builds.
|
||||
|
||||
Docker static deploy:
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user