Skip to content

Commit 497fae6

Browse files
authored
Update readme.md
1 parent fcf05d3 commit 497fae6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

readme.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ Make sure to chown all the data in your webroot to your own user, since docker s
1212
1313
## How to run
1414

15+
### Initial steps
16+
1517
> docker run --name myproject -it -d -v $(pwd):/app -w /app -p 8000:8000 verwilst/php7-cli php artisan serve --host=0.0.0.0
1618
1719
You can now open your browser on http://127.0.0.1:8000 .
@@ -20,6 +22,12 @@ The project is configured to support live reloading. The browser opens a websock
2022

2123
> docker run --name myproject-gulp -it -d -v $(pwd):/app -p 35729:35729 -w /app verwilst/gulp watch
2224
25+
### Starting an existing app
26+
27+
> docker start mongo percona myproject myproject-gulp
28+
29+
( Leaving off mongo and/or percona if you didn't create those docker containers ofcourse. )
30+
2331
## When MongoDB is needed
2432

2533
> docker run --name mongo -d mongo
@@ -30,6 +38,8 @@ Using the MongoDB console is as easy as calling:
3038

3139
> docker exec -it mongo mongo admin
3240
41+
In your app (.env, ... ), use 'mongo' as hostname for the Mongo server.
42+
3343
## When MySQL/Percona is needed
3444

3545
> docker run --name percona -e MYSQL_ALLOW_EMPTY_PASSWORD=true -d percona
@@ -40,3 +50,5 @@ Using the MySQL console is as easy as calling:
4050

4151
> docker exec -it percona mysql
4252
53+
In your app (.env, ... ), use 'percona' as hostname for the MySQL server.
54+

0 commit comments

Comments
 (0)