Search code examples
laravelcontinuous-integrationgitlablaravel-envoylaravel-sail

Laravel Sail: the input device is not a TTY


I'm using Laravel Envoy and GitLab CI/CD to deploy my application, when i try to run npm install using Sail i get the following error:

the input device is not a TTY

here's my envoy task:

@task('run_compile')
{{ logMessage("Running compile...") }}
cd {{$deploy_path}}
./vendor/bin/sail npm ci
{{ logMessage("Npm packages installed") }}
./vendor/bin/sail npm run prod --silent --no-progress
{{ logMessage("Npm packages built") }}
rm -rf node_modules
{{ logMessage("Compile completed") }}
@endtask

Solution

  • Found a fix for that, instead of using Laravel Envoy to proxy commands into the container, i ran it myself:

    docker exec $(docker-compose ps -q) npm ci