clarify dev instructions
This commit is contained in:
parent
05f3c7ea3d
commit
655763aa42
19
README.md
19
README.md
@ -18,12 +18,6 @@ To use this program in production, run the binary with the the first parameter a
|
|||||||
$ rot ~/poem.txt /var/www/rot.html
|
$ rot ~/poem.txt /var/www/rot.html
|
||||||
```
|
```
|
||||||
|
|
||||||
To use this program in development, you can run it with `go run`:
|
|
||||||
|
|
||||||
```
|
|
||||||
$ go run main.go poem.txt test.html
|
|
||||||
```
|
|
||||||
|
|
||||||
Every time this program runs, it will take the contents of the poem file, "rot"
|
Every time this program runs, it will take the contents of the poem file, "rot"
|
||||||
it using its algorithm, write the contents to the html file, and then update the
|
it using its algorithm, write the contents to the html file, and then update the
|
||||||
poem file with the new rotted contents.
|
poem file with the new rotted contents.
|
||||||
@ -40,7 +34,18 @@ on a regular interval, for example, every hour:
|
|||||||
To build the program, make sure you have [Go](https://golang.org/dl/) installed.
|
To build the program, make sure you have [Go](https://golang.org/dl/) installed.
|
||||||
These instructions assume you have Go 1.24 or later, and are running on macOS.
|
These instructions assume you have Go 1.24 or later, and are running on macOS.
|
||||||
|
|
||||||
Then, clone this repository and run:
|
Clone the repository:
|
||||||
|
```
|
||||||
|
$ git clone https://git.tilde.town/ike/rot.git
|
||||||
|
$ cd rot
|
||||||
|
```
|
||||||
|
|
||||||
|
To use this program in development, you can run it with `go run`:
|
||||||
|
```
|
||||||
|
$ go run main.go poem.txt test.html
|
||||||
|
```
|
||||||
|
|
||||||
|
To build a binary for macOS, run:
|
||||||
```
|
```
|
||||||
$ go build -o dist/rot-darwin .
|
$ go build -o dist/rot-darwin .
|
||||||
```
|
```
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user