You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was one of the students at the NFQ academy. I developed on Windows and met problems launching the project. I will share my experience to save your time. Here are my tips.
I suggest using Vagrant instead of Docker Toolbox (it is for older Windows versions).
Who has experience with Laravel Homestead, you can use it. It works fine as well. Here is a great tutorial, how to install Homestead on Windows.
Why Homestead? You can set up a local domain address, something like - nfq.test. Probably you can do that and without Homestead, I did not try.
Once Vagrant setup and running, enter Vagrant vagrant ssh. Go to the project folder, for example, cd code/project and clone your project, which will be based on kickstart.
Maybe it was only for me, but I had numerous problems launching the project, mostly with MySQL container.
First of all, before launching Docker (scripts/start.sh) go to scripts/docker-compose.yml and edit ports of nginx.symfony container:
from - 127.0.0.1:8000:80
to - 8000:80
127.0.0.1 is the localhost, but we are using Vagrant, so we need to use Vagrant local IP or leave empty.
Homestead users will reach the project by entering their setup local address (for example nfq.test:8000).
One of the problem was related to permissions. I fixed it by adding :rw in file scripts/docker-compose.yml: - ../.docker/mysql-data/:/var/lib/mysql:rw. Solution.
It could be that :rw do not help. Then try to rename volume address:
from - ../.docker/mysql-data/:/var/lib/mysql
to - ../.docker/mysql-data/:/var/lib/mysql1
Forgot to mention, that the SSH client (for example Putty or Git Bash) must be started with option Run as administrator, otherwise, you will have many problems inside Vagrant.
NOTE. Do not forget to revert all changes to the original in file docker-compose.yml before pushing to your repository.
It is just my advises, hopefully, it will help somebody. Choose what works best for you.
Good luck and have fun.
The text was updated successfully, but these errors were encountered:
Hello students,
I was one of the students at the NFQ academy. I developed on Windows and met problems launching the project. I will share my experience to save your time. Here are my tips.
Here is a great tutorial, how to install Homestead on Windows.
Why Homestead? You can set up a local domain address, something like - nfq.test. Probably you can do that and without Homestead, I did not try.
vagrant ssh
. Go to the project folder, for example,cd code/project
and clone your project, which will be based on kickstart.First of all, before launching Docker (
scripts/start.sh
) go to scripts/docker-compose.yml and edit ports of nginx.symfony container:from -
127.0.0.1:8000:80
to -
8000:80
127.0.0.1 is the localhost, but we are using Vagrant, so we need to use Vagrant local IP or leave empty.
Homestead users will reach the project by entering their setup local address (for example nfq.test:8000).
One of the problem was related to permissions. I fixed it by adding
:rw
in file scripts/docker-compose.yml:- ../.docker/mysql-data/:/var/lib/mysql:rw
. Solution.It could be that
:rw
do not help. Then try to rename volume address:from
- ../.docker/mysql-data/:/var/lib/mysql
to
- ../.docker/mysql-data/:/var/lib/mysql1
Forgot to mention, that the SSH client (for example Putty or Git Bash) must be started with option Run as administrator, otherwise, you will have many problems inside Vagrant.
NOTE. Do not forget to revert all changes to the original in file docker-compose.yml before pushing to your repository.
It is just my advises, hopefully, it will help somebody. Choose what works best for you.
Good luck and have fun.
The text was updated successfully, but these errors were encountered: