You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Run `pipenv run lektor server -f webpack` to start the Lektor development
97
-
server.
114
+
- Start the Lektor development server:
115
+
```
116
+
pipenv run lektor server -f webpack
117
+
```
98
118
- You will be able to see the website at [`http://localhost:5000/`][local5000].
99
119
- The Lektor server will rebuild the site every time you change any content.
100
120
101
121
[local5000]:http://localhost:5000/
102
122
123
+
103
124
### Troubleshooting Possible Errors
104
125
105
-
* Should you get series of type errors that looks something like `npm ERR! typeerror Error: Missing required argument #1`, after running `pipenv run lektor server -f webpack`, this is most likely due to running an older version of Node.js.
126
+
- Should you get series of type errors that looks something like `npm ERR!
127
+
typeerror Error: Missing required argument #1`, after running `pipenv run
128
+
lektor server -f webpack`, this is most likely due to running an older
129
+
version of Node.js.
106
130
107
-
As stated earlier in the prerequisites, you should be running Node.js version 12+.
108
-
Follow [this](https://github.com/nodesource/distributions/blob/master/README.md#table-of-contents) tutorial to upgrade your node version (for GNU/Unix systems).
131
+
As stated above in [Prerequisites](#prerequisites), you should be running
132
+
Node.js version 12+.
109
133
110
-
* Should you get an `OSError: [Errno 28] inotify watch limit reached` after running any command, this means that your system file watcher is running out of alloted handles, usually because the workspace is large and contains many files.
134
+
- Should you get an `OSError: [Errno 28] inotify watch limit reached` after
135
+
running any command, this means that your system file watcher is running out
136
+
of allotted handles, usually because the workspace is large and contains many
137
+
files.
111
138
112
139
The solution is to run:
113
-
`sudo sysctl fs.inotify.max_user_watches=524288`
140
+
```
141
+
sudo sysctl fs.inotify.max_user_watches=524288
142
+
```
143
+
144
+
This increases your `inotify` watch limit (for the session) to 524288, which
145
+
is the maximum value and is also enough to allow the setup go through. You
146
+
can learn more about file watchers [from this blog post][inotifyblog]
147
+
or [from the VS Code documentation][watchchanges].
This increases your `inotify` watch limit (for the session) to 524288, which is the maximum value and is also enough to allow the setup go through.
116
-
You can learn more about file watchers [from this blog post](https://unixia.wordpress.com/2018/04/28/inotify-watch-limit-reached-wait-what/) or [from the VS Code documentation](https://code.visualstudio.com/docs/setup/linux#_visual-studio-code-is-unable-to-watch-for-file-changes-in-this-large-workspace-error-enospc).
117
152
118
153
## Deployment
119
154
@@ -175,7 +210,7 @@ Here's how the code is structured in the top level of the repository:
175
210
excerpt
176
211
- [lektor/lektor-markdown-header-anchors][md-header]: Adds support for
177
212
anchors and table of contents to Markdown
178
-
-[lektor/lektor-markdown-highlighter][md-highlighter]: Adds support for
213
+
- [lektor/lektor-markdown-highlighter][md-highlighter]: Adds support for
179
214
syntax highlighting in Markdown and templates
180
215
- [terminal-labs/lektor-strip-html-tags][striphtml]: Strip HTML tags,
181
216
effectively turning HTML into plain text
@@ -220,7 +255,7 @@ Here's how the code is structured in the top level of the repository:
220
255
221
256
![CC BY 4.0 license button][cc-by-png]
222
257
223
-
All the content within this repository is licensed under a [Creative Commons
258
+
All the content within this repository is licensed under a [Creative Commons
224
259
Attribution 4.0 International License][cc-by] unless otherwise
0 commit comments