-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
mebtte
committed
Jan 22, 2024
1 parent
e8f5e3a
commit 7966a8b
Showing
2 changed files
with
52 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Run by source code | ||
|
||
## Requirements | ||
|
||
- [Node>=18](https://nodejs.org) | ||
|
||
## Deployment | ||
|
||
```sh | ||
git clone https://github.com/mebtte/cicada.git | ||
cd cicada | ||
npm ci | ||
npm run build:pwa | ||
npm start -- -- start --port <port> --data <data> # attention: double -- | ||
``` | ||
|
||
When needing upgrade, you should run below commands: | ||
|
||
```sh | ||
git pull # pull the latest code | ||
npm run build:pwa # rebuild pwa | ||
npm start -- -- start --port <port> --data <data> # restart the server | ||
``` | ||
|
||
## Migration | ||
|
||
```sh | ||
git fetch -p | ||
git switch v2 | ||
npm ci | ||
npm start -- -- upgrade-data <data> | ||
``` | ||
|
||
## Music import | ||
|
||
```sh | ||
# import directory | ||
npm start -- -- import --data /path_to/cicada_data --recursive <music_directory> | ||
|
||
# import file | ||
npm start -- -- import --data /path_to/cicada_data <music> | ||
``` | ||
|
||
## Data fix | ||
|
||
```sh | ||
npm start -- -- fix-data <data> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters