mirror of
https://github.com/writefreely/writefreely
synced 2024-11-24 01:23:04 +00:00
Include -config and -init-db steps in make install
This also moves development instructions to documentation repo.
This commit is contained in:
parent
771c7acf5f
commit
7a07e1009b
2 changed files with 3 additions and 20 deletions
2
Makefile
2
Makefile
|
@ -57,7 +57,9 @@ deps-no-sqlite:
|
|||
$(GOGET) -d -v ./...
|
||||
|
||||
install : build
|
||||
cmd/writefreely/$(BINARY_NAME) --config
|
||||
cmd/writefreely/$(BINARY_NAME) --gen-keys
|
||||
cmd/writefreely/$(BINARY_NAME) --init-db
|
||||
cd less/; $(MAKE) install $(MFLAGS)
|
||||
|
||||
release : clean ui assets
|
||||
|
|
21
README.md
21
README.md
|
@ -97,26 +97,7 @@ WriteFreely is available in these package repositories:
|
|||
|
||||
## Development
|
||||
|
||||
Ready to hack on your site? Here's a quick overview.
|
||||
|
||||
### Prerequisites
|
||||
|
||||
* [Go 1.10+](https://golang.org/dl/)
|
||||
* [Node.js](https://nodejs.org/en/download/)
|
||||
|
||||
### Setting up
|
||||
|
||||
```bash
|
||||
go get -d github.com/writeas/writefreely/cmd/writefreely
|
||||
```
|
||||
|
||||
Configure your site, create your database, and import the schema [as shown above](#quick-start). Then generate the remaining files you'll need:
|
||||
|
||||
```bash
|
||||
make install # Generates encryption keys; installs LESS compiler
|
||||
make ui # Generates CSS (run this whenever you update your styles)
|
||||
make run # Runs the application
|
||||
```
|
||||
Ready to hack on your site? Get started with our [developer guide](https://writefreely.org/docs/latest/developer).
|
||||
|
||||
## Docker
|
||||
|
||||
|
|
Loading…
Reference in a new issue