Skip to content

Commit 2a9fe66

Browse files
authored
Merge pull request #805 from SISheogorath/fix/noFile
Fix possible file limit errors
2 parents 8a3cec7 + c4dba48 commit 2a9fe66

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ Thanks for using! :smile:
6060
- Database (PostgreSQL, MySQL, MariaDB, SQLite, MSSQL) use charset `utf8`
6161
- npm (and its dependencies, especially [uWebSockets](https://github.com/uWebSockets/uWebSockets#nodejs-developers), [node-gyp](https://github.com/nodejs/node-gyp#installation))
6262
- For **building** HackMD we recommend to use a machine with at least **2GB** RAM
63-
- (optional) *For development you may need to increase the number of allowed open file descriptors on your machine*
6463

6564
### Instructions
6665

@@ -329,5 +328,5 @@ See more at [http://operational-transformation.github.io/](http://operational-tr
329328
[standardjs-url]: https://github.com/feross/standard
330329
[codetriage-image]: https://www.codetriage.com/hackmdio/hackmd/badges/users.svg
331330
[codetriage-url]: https://www.codetriage.com/hackmdio/hackmd
332-
[poeditor-image]: https://img.shields.io/badge/POEditor-translate-green.svg
331+
[poeditor-image]: https://img.shields.io/badge/POEditor-translate-blue.svg
333332
[poeditor-url]: https://poeditor.com/join/project/1OpGjF2Jir

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"font-awesome": "^4.7.0",
4343
"formidable": "^1.0.17",
4444
"gist-embed": "~2.6.0",
45+
"graceful-fs": "^4.1.11",
4546
"handlebars": "^4.0.6",
4647
"helmet": "^3.3.0",
4748
"highlight.js": "~9.9.0",

webpackBaseConfig.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ var ExtractTextPlugin = require('extract-text-webpack-plugin')
44
var HtmlWebpackPlugin = require('html-webpack-plugin')
55
var CopyWebpackPlugin = require('copy-webpack-plugin')
66

7+
// Fix possible nofile-issues
8+
var fs = require('fs')
9+
var gracefulFs = require('graceful-fs')
10+
gracefulFs.gracefulify(fs)
11+
712
module.exports = {
813
plugins: [
914
new webpack.ProvidePlugin({

0 commit comments

Comments
 (0)