Skip to content

Commit

Permalink
Docker dev setup: fix project name, add PHPStorm tips (EotvosCollegiu…
Browse files Browse the repository at this point in the history
  • Loading branch information
Trigary authored Feb 29, 2024
1 parent d1d15f6 commit 587d0f0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker-dev-setup/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ RUN wget -nv -O node.tar.xz https://nodejs.org/dist/v20.9.0/node-v20.9.0-linux-x
rm node.tar.xz
ENV PATH=$PATH:/workspace/node-v20.9.0-linux-x64/bin

WORKDIR /workspace/mnt
WORKDIR /workspace/mars

CMD ["/usr/bin/sleep", "infinity"]
4 changes: 4 additions & 0 deletions docker-dev-setup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ You can use an IDE or text editor of your choice. Here are some recommended IDEs

- Set up a [remote PHP interpreter](https://www.jetbrains.com/help/phpstorm/configuring-remote-interpreters.html) using Docker Compose
- Select the `docker-dev-setup/docker-compose.yml` configuration file and the `mars_dev` service
- Add support for Laravel Eloquent:
- Generate IDE helper files: `docker exec mars_dev bash -c "php artisan clear-compiled && php artisan ide-helper:refresh"`
- In PHPStorm click on: `File / Invalidate caches / Invalidate and Restart`
- Now `self::where(...)`, `@mixin \Eloquent`, etc. shouldn't get marked as errors

#### Visual Studio Code (vsc, vscode)

Expand Down
2 changes: 1 addition & 1 deletion docker-dev-setup/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ services:
depends_on:
- mars_mysql
volumes:
- "..:/workspace/mnt"
- "..:/workspace/mars"
ports:
- '127.0.0.1:8000:8000'

Expand Down

0 comments on commit 587d0f0

Please sign in to comment.