diff options
| author | Acid Chicken (硫酸鶏) <root@acid-chicken.com> | 2019-07-15 21:32:09 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-15 21:32:09 +0900 |
| commit | 4c79dd4e9672fb10dc0abbe3d9265ed581c9da0b (patch) | |
| tree | 9b10294c860228db93499e1f0c93c2801cdc6832 /docs/setup.en.md | |
| parent | New Crowdin translations (#5155) (diff) | |
| download | sharkey-4c79dd4e9672fb10dc0abbe3d9265ed581c9da0b.tar.gz sharkey-4c79dd4e9672fb10dc0abbe3d9265ed581c9da0b.tar.bz2 sharkey-4c79dd4e9672fb10dc0abbe3d9265ed581c9da0b.zip | |
Use yarn (#5154)
* Revert ":v:"
This reverts commit b5b437b8784eb32531e0965d722ddb691775df08.
* Welcome back, yarn.lock
[lockfiles for all](https://yarnpkg.com/blog/2016/11/24/lockfiles-for-all/)
* Use alpine package registry instead of npm's
* Avoid npx
* Remove `"`
* Follow review
refs: https://github.com/syuilo/misskey/pull/5154#discussion_r303227256
* Update lockfile
* Use yarn instead of npm run
refs: https://github.com/syuilo/misskey/pull/5154#discussion_r303227285
* Back to npm
* Follow review
refs: https://github.com/syuilo/misskey/pull/5154#discussion_r303292279
Diffstat (limited to 'docs/setup.en.md')
| -rw-r--r-- | docs/setup.en.md | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/docs/setup.en.md b/docs/setup.en.md index 885c8c8a48..6dfbdbfeac 100644 --- a/docs/setup.en.md +++ b/docs/setup.en.md @@ -27,6 +27,7 @@ Please install and setup these softwares: * **[Redis](https://redis.io/)** ##### Optional +* [Yarn](https://yarnpkg.com/) *Optional but recommended for security reason. If you won't install it, use `npx yarn` instead of `yarn`.* * [Elasticsearch](https://www.elastic.co/) - required to enable the search feature * [FFmpeg](https://www.ffmpeg.org/) @@ -50,7 +51,7 @@ Please install and setup these softwares: 5. Install misskey dependencies. - `npx yarn install` + `yarn` *4.* Configure Misskey ---------------------------------------------------------------- @@ -65,21 +66,20 @@ Please install and setup these softwares: Build misskey with the following: -`NODE_ENV=production npm run build` +`NODE_ENV=production yarn build` If you're on Debian, you will need to install the `build-essential`, `python` package. If you're still encountering errors about some modules, use node-gyp: -1. `npm install -g node-gyp` -2. `node-gyp configure` -3. `node-gyp build` -4. `NODE_ENV=production npm run build` +1. `npx node-gyp configure` +2. `npx node-gyp build` +3. `NODE_ENV=production yarn build` *6.* Init DB ---------------------------------------------------------------- ``` shell -npm run init +yarn run init ``` *7.* That is it. @@ -130,15 +130,15 @@ You can check if the service is running with `systemctl status misskey`. ### How to update your Misskey server to the latest version 1. `git checkout master` 2. `git pull` -3. `npx yarn install` or `yarn install` -4. `NODE_ENV=production npm run build` -5. `npm run migrate` +3. `yarn install` +4. `NODE_ENV=production yarn build` +5. `yarn migrate` 6. Restart your Misskey process to apply changes 7. Enjoy If you encounter any problems with updating, please try the following: -1. `npm run clean` or `npm run cleanall` -2. Retry update (Don't forget `npx yarn install` or `yarn install`) +1. `yarn clean` or `yarn cleanall` +2. Retry update (Don't forget `yarn install` ---------------------------------------------------------------- |