Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sobird/guestbook
my guestbook
https://github.com/sobird/guestbook
guestbook nextjs
Last synced: 6 days ago
JSON representation
my guestbook
- Host: GitHub
- URL: https://github.com/sobird/guestbook
- Owner: sobird
- Created: 2017-06-10T12:13:19.000Z (over 7 years ago)
- Default Branch: next.js
- Last Pushed: 2024-04-15T15:47:25.000Z (9 months ago)
- Last Synced: 2024-04-15T17:11:22.280Z (9 months ago)
- Topics: guestbook, nextjs
- Language: TypeScript
- Homepage: https://guestbook.sobird.me
- Size: 774 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a starter template for [Learn Next.js](https://nextjs.org/learn).
## pm2
在服务器上全局安装PM2
```bash
npm i -g pm2
```通过pm2命令行启动
```sh
# pm2 start yarn --name "nextjs" --interpreter bash -- start
pm2 start --name nextjs yarn -- start
pm2 show nextjs
```通过pm2配置文件启动
```bash
PORT=4000 pm2 start pm2.config.js
```## 部署Next.js
有两种方式
* 通过 `yarn build && yarn start` 命令行来启动SSR服务
* 构建独立的SSR服务,静态资源分开部署