Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change default domain name to symfony.local #90

Merged
merged 1 commit into from
Jan 28, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ Docker-symfony gives you everything you need for developing Symfony application.
$ docker-compose up -d
```

3. Update your system host file (add symfony.dev)
3. Update your system host file (add symfony.local)

```bash
# UNIX only: get containers IP address and update host (replace IP according to your configuration) (on Windows, edit C:\Windows\System32\drivers\etc\hosts)
$ sudo echo $(docker network inspect bridge | grep Gateway | grep -o -E '[0-9\.]+') "symfony.dev" >> /etc/hosts
$ sudo echo $(docker network inspect bridge | grep Gateway | grep -o -E '[0-9\.]+') "symfony.local" >> /etc/hosts
```

**Note:** For **OS X**, please take a look [here](https://docs.docker.com/docker-for-mac/networking/) and for **Windows** read [this](https://docs.docker.com/docker-for-windows/#/step-4-explore-the-application-and-run-examples) (4th step).
Expand Down Expand Up @@ -63,9 +63,9 @@ Docker-symfony gives you everything you need for developing Symfony application.

Just run `docker-compose up -d`, then:

* Symfony app: visit [symfony.dev](http://symfony.dev)
* Symfony dev mode: visit [symfony.dev/app_dev.php](http://symfony.dev/app_dev.php)
* Logs (Kibana): [symfony.dev:81](http://symfony.dev:81)
* Symfony app: visit [symfony.local](http://symfony.local)
* Symfony dev mode: visit [symfony.local/app_dev.php](http://symfony.local/app_dev.php)
* Logs (Kibana): [symfony.local:81](http://symfony.local:81)
* Logs (files location): logs/nginx and logs/symfony

## Customize
Expand Down
2 changes: 1 addition & 1 deletion doc/custom.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
- "8080:80"
```

2. Visit: [symfony.dev:8080](http://symfony.dev:8080)
2. Visit: [symfony.local:8080](http://symfony.local:8080)

## Add Redis

Expand Down
2 changes: 1 addition & 1 deletion nginx/symfony.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
server {
server_name symfony.dev;
server_name symfony.local;
root /var/www/symfony/web;

location / {
Expand Down