1
0
mirror of https://github.com/mxpv/podsync.git synced 2024-05-11 05:55:04 +00:00

Fix README markup

This commit is contained in:
Maksym Pavlenko
2020-02-08 17:00:39 -08:00
committed by GitHub
parent db66f6c73a
commit 23fb5ba31a

View File

@@ -73,34 +73,37 @@ hostname = "https://my.test.host:4443"
... ...
``` ```
## Schedule via cron expression Server will be accessible from `http://localhost:8080`, but episode links will point to `https://my.test.host:4443/ID1/...`
### Schedule via cron expression
You can use `cron_schedule` field to build more precise update checks schedule.
A cron expression represents a set of times, using 5 space-separated fields. A cron expression represents a set of times, using 5 space-separated fields.
Field name | Mandatory? | Allowed values | Allowed special characters | Field name | Mandatory? | Allowed values | Allowed special characters |
---------- | ---------- | -------------- | -------------------------- | ------------ | ---------- | --------------- | -------------------------- |
Minutes | Yes | 0-59 | * / , - | Minutes | Yes | 0-59 | * / , - |
Hours | Yes | 0-23 | * / , - | Hours | Yes | 0-23 | * / , - |
Day of month | Yes | 1-31 | * / , - ? | Day of month | Yes | 1-31 | * / , - ? |
Month | Yes | 1-12 or JAN-DEC | * / , - | Month | Yes | 1-12 or JAN-DEC | * / , - |
Day of week | Yes | 0-6 or SUN-SAT | * / , - ? | Day of week | Yes | 0-6 or SUN-SAT | * / , - ? |
Month and Day-of-week field values are case insensitive. "SUN", "Sun", and "sun" are equally accepted. Month and Day-of-week field values are case insensitive. `SUN`, `Sun`, and `sun` are equally accepted.
The specific interpretation of the format is based on the Cron Wikipedia page: https://en.wikipedia.org/wiki/Cron The specific interpretation of the format is based on the Cron Wikipedia page: https://en.wikipedia.org/wiki/Cron
### Predefined schedules #### Predefined schedules
You may use one of several pre-defined schedules in place of a cron expression. You may use one of several pre-defined schedules in place of a cron expression.
Entry | Description | Equivalent To | Entry | Description | Equivalent to |
----- | ----------- | ------------- | ----------------------- | -------------------------------------------| ------------- |
@yearly (or @annually) | Run once a year, midnight, Jan. 1st | 0 0 1 1 * | `@monthly` | Run once a month, midnight, first of month | `0 0 1 * *` |
@monthly | Run once a month, midnight, first of month | 0 0 1 * * | `@weekly` | Run once a week, midnight between Sat/Sun | `0 0 * * 0` |
@weekly | Run once a week, midnight between Sat/Sun | 0 0 * * 0 | `@daily (or @midnight)` | Run once a day, midnight | `0 0 * * *` |
@daily (or @midnight) | Run once a day, midnight | 0 0 * * * | `@hourly` | Run once an hour, beginning of hour | `0 * * * *` |
@hourly | Run once an hour, beginning of hour | 0 * * * *
### Intervals #### Intervals
You may also schedule a job to execute at fixed intervals, starting at the time it's added You may also schedule a job to execute at fixed intervals, starting at the time it's added
or cron is run. This is supported by formatting the cron spec like this: or cron is run. This is supported by formatting the cron spec like this:
@@ -109,9 +112,7 @@ or cron is run. This is supported by formatting the cron spec like this:
where "duration" is a string accepted by [time.ParseDuration](http://golang.org/pkg/time/#ParseDuration). where "duration" is a string accepted by [time.ParseDuration](http://golang.org/pkg/time/#ParseDuration).
For example, "@every 1h30m10s" would indicate a schedule that activates after 1 hour, 30 minutes, 10 seconds, and then every interval after that. For example, `@every 1h30m10s` would indicate a schedule that activates after 1 hour, 30 minutes, 10 seconds, and then every interval after that.
Server will be accessible from `http://localhost:8080`, but episode links will point to `https://my.test.host:4443/ID1/...`
## One click deployment ## One click deployment
@@ -142,6 +143,6 @@ $ docker-compose up
## How to make a release ## How to make a release
Just run: Just run:
``` ```
$ make release V=2.0.7 $ make release V=2.0.7
``` ```