wrap code in code blocks
This commit is contained in:
22
README.md
22
README.md
@@ -40,22 +40,28 @@ You can now find our documentation at [https://docs.cachethq.io](https://docs.ca
|
|||||||
|
|
||||||
## Quickstart with Docker
|
## Quickstart with Docker
|
||||||
|
|
||||||
Run a DB container (you can either pass in environment variables for the DB, or mount a config with -v /my/database.php:/var/www/html/app/config/database.php):
|
Run a DB container (you can either pass in environment variables for the DB, or mount a config with ```-v /my/database.php:/var/www/html/app/config/database.php```):
|
||||||
|
|
||||||
export DB_USERNAME=cachet
|
```
|
||||||
export DB_PASSWORD=cachet
|
export DB_USERNAME=cachet
|
||||||
export DB_DATABASE=cachet
|
export DB_PASSWORD=cachet
|
||||||
docker run --name mysql -e MYSQL_USER=$DB_USERNAME -e MYSQL_PASSWORD=$DB_PASSWORD -e MYSQL_DATABASE=$DB_DATABASE -d mysql
|
export DB_DATABASE=cachet
|
||||||
|
docker run --name mysql -e MYSQL_USER=$DB_USERNAME -e MYSQL_PASSWORD=$DB_PASSWORD -e MYSQL_DATABASE=$DB_DATABASE -d mysql
|
||||||
|
```
|
||||||
|
|
||||||
Initialize the DB if you havent yet:
|
Initialize the DB if you havent yet:
|
||||||
|
|
||||||
docker run --link mysql:mysql -e DB_HOST=mysql -e DB_DATABASE=$DB_DATABASE -e DB_USERNAME=$DB_USERNAME -e DB_PASSWORD=$DB_PASSWORD byxorna/cachet:test php artisan migrate
|
```
|
||||||
|
docker run --link mysql:mysql -e DB_HOST=mysql -e DB_DATABASE=$DB_DATABASE -e DB_USERNAME=$DB_USERNAME -e DB_PASSWORD=$DB_PASSWORD byxorna/cachet:test php artisan migrate
|
||||||
|
```
|
||||||
|
|
||||||
Run Cachet:
|
Run Cachet:
|
||||||
|
|
||||||
docker run -d --link mysql:mysql -p 80:80 -e DB_HOST=mysql -e DB_DATABASE=$DB_DATABASE -e DB_USERNAME=$DB_USERNAME -e DB_PASSWORD=$DB_PASSWORD byxorna/cachet:test
|
```
|
||||||
|
docker run -d --link mysql:mysql -p 80:80 -e DB_HOST=mysql -e DB_DATABASE=$DB_DATABASE -e DB_USERNAME=$DB_USERNAME -e DB_PASSWORD=$DB_PASSWORD byxorna/cachet:test
|
||||||
|
```
|
||||||
|
|
||||||
Now go to http://<ipdockerisboundto>/setup and have fun!
|
Now go to ```http://<ipdockerisboundto>/setup``` and have fun!
|
||||||
|
|
||||||
## Translations
|
## Translations
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user