mirror of
https://github.com/writefreely/documentation.git
synced 2024-11-14 23:11:03 +00:00
Merge pull request #46 from GSI/rootless-setup
describe setup without depending on root privileges
This commit is contained in:
commit
033c34b09b
@ -33,8 +33,9 @@ cd writefreely
|
|||||||
Next, install the bindata generator and create `bindata.go` (needed for a successful build).
|
Next, install the bindata generator and create `bindata.go` (needed for a successful build).
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
go get -u github.com/jteeuwen/go-bindata/go-bindata
|
GOPATH=${GOPATH:-$HOME/go/bin}
|
||||||
go-bindata -pkg writefreely -ignore=\\.gitignore schema.sql sqlite.sql
|
go install github.com/jteeuwen/go-bindata/go-bindata
|
||||||
|
${GOPATH}/go-bindata -pkg writefreely -ignore=\\.gitignore schema.sql sqlite.sql
|
||||||
```
|
```
|
||||||
|
|
||||||
Finally, build the `writefreely` binary with SQLite support. (Remove `-tags='sqlite'` if you don't need SQLite support.)
|
Finally, build the `writefreely` binary with SQLite support. (Remove `-tags='sqlite'` if you don't need SQLite support.)
|
||||||
@ -50,17 +51,18 @@ You can now run WriteFreely! But you'll need one more step to generate some asse
|
|||||||
You'll need Node.js and LESS installed to generate WriteFreely static assets. Install LESS:
|
You'll need Node.js and LESS installed to generate WriteFreely static assets. Install LESS:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm install -g less
|
npm install less less-plugin-clean-css
|
||||||
```
|
```
|
||||||
|
|
||||||
Next, compile all stylesheets from the `less` directory, creating them in the `static/css/` directory:
|
Next, compile all stylesheets from the `less` directory, creating them in the `static/css/` directory:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd less
|
cd less
|
||||||
export CSSDIR=../static/css/
|
LESSC=../node_modules/less/bin/lessc
|
||||||
lessc app.less --clean-css="--s1 --advanced" $(CSSDIR)write.css
|
CSSDIR=../static/css
|
||||||
lessc fonts.less --clean-css="--s1 --advanced" $(CSSDIR)fonts.css
|
$LESSC app.less --clean-css="--s1 --advanced" ${CSSDIR}/write.css
|
||||||
lessc icons.less --clean-css="--s1 --advanced" $(CSSDIR)icons.css
|
$LESSC fonts.less --clean-css="--s1 --advanced" ${CSSDIR}/fonts.css
|
||||||
|
$LESSC icons.less --clean-css="--s1 --advanced" ${CSSDIR}/icons.css
|
||||||
```
|
```
|
||||||
|
|
||||||
Now you can run and distribute WriteFreely! 🎉
|
Now you can run and distribute WriteFreely! 🎉
|
||||||
|
Loading…
Reference in New Issue
Block a user