-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
No such file or directory when running migrate install on windows #51
Comments
Are you running this command on WSL2 under Linux Terminal, or on PowerShell / Command Prompt? Another point to observe: The current stable version is |
I believe the issue is in the Docker container, you are running the command line. Would you mind sharing the docker file/ docker-compose you are using? |
alright, this is the docker compose and php dockerfile as well. docker compose file
php dockerfile
|
Hello, I am not seeing either you're copying/sharing the vendor folder or you are running the composer install inside the docker file. The easy way you run the composer install on the windows side and share it inside the docker file. Something like this: docker-compose.yaml
Docker cannot access the windows files unless you allow that by "sharing" in the volumes part. Also, you need to verify if the folders you're sharing inside the docker are correct. It isn't an issue on the migrations lib, but on the environment. |
whenever I run
vendor/bin/migrate install --path vendor/byjg/migration-cli/pob/sql_server sqlsrv://user_id:'userpwd'@sql1/DB-v
in windows docker php container environment, it gives me this errorvendor/bin/migrate: line 1: ../byjg/migration-cli/scripts/migrate: No such file or directory
. This is thevendor/bin/migrate
script../byjg/migration-cli/scripts/migrate
.However, this works on mac docker php container environment with no issues. Does anyone know how I can fix this, thank you.
The text was updated successfully, but these errors were encountered: