mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-21 23:41:18 +01:00
renew dokku installation instructions
+ some minor readme changes
This commit is contained in:
parent
73af64ef2b
commit
53e571bd6e
51
README.md
51
README.md
@ -29,32 +29,38 @@ Please [visit the website](https://crafatar.com) for details.
|
|||||||
|
|
||||||
## Contact
|
## Contact
|
||||||
|
|
||||||
* You can follow us on [@crafatar](https://twitter.com/crafatar)
|
* You can [follow](https://twitter.com/crafatar) us on twitter
|
||||||
* Open an [issue](https://github.com/crafatar/crafatar/issues/) on GitHub
|
* Open an [issue](https://github.com/crafatar/crafatar/issues/) on GitHub
|
||||||
* You can [join us](https://webchat.esper.net/?channels=crafatar) in #crafatar on irc.esper.net.
|
* You can [join IRC](https://webchat.esper.net/?channels=crafatar) in #crafatar on irc.esper.net.
|
||||||
|
|
||||||
## Installation
|
## Installation on Heroku
|
||||||
|
|
||||||
#### Heroku
|
|
||||||
[](https://heroku.com/deploy)
|
[](https://heroku.com/deploy)
|
||||||
|
|
||||||
#### Dokku
|
## Installation on Dokku
|
||||||
0. Install the [dokku-redis](https://github.com/ohardy/dokku-redis#redis-plugin-for-dokku) plugin
|
##### [dokku server]
|
||||||
0. `dokku redis:start`
|
Install the [dokku-redis](https://github.com/ohardy/dokku-redis#redis-plugin-for-dokku) plugin.
|
||||||
0. You also might want to use [docker-options](https://github.com/dyson/dokku-docker-options) for persistent storage:
|
```shell
|
||||||
|
dokku redis:start
|
||||||
```docker
|
dokku apps:create crafatar
|
||||||
-v /var/lib/crafatar/images:/app/images
|
dokku config:set crafatar BIND=0.0.0.0 PORT=5000
|
||||||
-v /var/log/crafatar:/app/logs
|
|
||||||
```
|
```
|
||||||
0. Deploy with ENV config:
|
For persistent images and logs:
|
||||||
|
```shell
|
||||||
```bash
|
dokku docker-options:add crafatar run "-v /var/lib/crafatar/images:/app/images"
|
||||||
PORT=5000
|
dokku docker-options:add crafatar run "-v /var/log/crafatar:/app/logs"
|
||||||
BIND=0.0.0.0
|
```
|
||||||
|
If you want to listen on extra domains:
|
||||||
|
```shell
|
||||||
|
dokku domains crafatar:add example.com
|
||||||
|
```
|
||||||
|
##### [your machine]
|
||||||
|
Add dokku remote and deploy!
|
||||||
|
```shell
|
||||||
|
git remote add dokku dokku@example.com:crafatar
|
||||||
|
git push dokku master
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Local
|
## Installation on your machine
|
||||||
* Use io.js
|
* Use io.js
|
||||||
* [Install](https://github.com/Automattic/node-canvas/wiki) Cairo.
|
* [Install](https://github.com/Automattic/node-canvas/wiki) Cairo.
|
||||||
* `npm install`
|
* `npm install`
|
||||||
@ -68,12 +74,13 @@ Please [visit the website](https://crafatar.com) for details.
|
|||||||
npm test
|
npm test
|
||||||
```
|
```
|
||||||
|
|
||||||
If you want to debug failing tests, you can set the env
|
If you want to debug failing tests:
|
||||||
```shell
|
```shell
|
||||||
VERBOSE_TEST=true
|
# show logs during tests
|
||||||
|
env VERBOSE_TEST=true npm test
|
||||||
```
|
```
|
||||||
|
|
||||||
To debug caching, it can be helpful to monitor redis commands while tests are running:
|
It can be helpful to monitor redis commands to debug caching errors:
|
||||||
```shell
|
```shell
|
||||||
redis-cli monitor
|
redis-cli monitor
|
||||||
```
|
```
|
||||||
Loading…
x
Reference in New Issue
Block a user