sync notes(auto)
This commit is contained in:
parent
b1fb65513b
commit
aa36dd62c7
2 changed files with 23 additions and 1 deletions
|
@ -74,6 +74,27 @@ DATABASE_URL=mysql://[username]:[password]@localhost:3306/umami_db
|
|||
```
|
||||
$ yarn build
|
||||
```
|
||||
でエラーになり、
|
||||
```
|
||||
✗ Command failed: prisma migrate deploy
|
||||
Error: P3009
|
||||
|
||||
migrate found failed migrations in the target database, new migrations will not be applied. Read more about how to resolve migration issues in a production database: https://pris.ly/d/migrate-resolve
|
||||
The `05_add_visit_id` migration started at 2024-04-07 07:47:46.598 UTC failed
|
||||
|
||||
|
||||
|
||||
error Command failed with exit code 1.
|
||||
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
|
||||
ERROR: "check-db" exited with 1.
|
||||
error Command failed with exit code 1.
|
||||
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
|
||||
```
|
||||
こうなった場合は、
|
||||
```
|
||||
$ npx prisma migrate resolve --applied "05_add_visit_id"
|
||||
```
|
||||
をやってみる。 cf: [prisma migrate deploy Error: P3009 · Issue #2645 · umami-software/umami · GitHub](https://github.com/umami-software/umami/issues/2645#issuecomment-2038626975)
|
||||
|
||||
port :3000は[[20240312115855 Raspi4 GiteaからForgejoに変更してみる|forgejo]]が使っていたので、ポートを変更して起動。
|
||||
```
|
||||
|
|
|
@ -2,7 +2,8 @@
|
|||
#nodejs #raspberrypi #npm
|
||||
aptでインストールするとバージョンが古い。
|
||||
|
||||
下記に書いてあるとおりの作業をした。
|
||||
下記に書いてあるとおりの作業をした。 nvmでもよかったかもしれない。
|
||||
|
||||
```
|
||||
$ sudo apt install -y nodejs npm
|
||||
$ sudo npm install n -g
|
||||
|
|
Loading…
Reference in a new issue