Fix: “Could not open input file: artisan”
If you see the following error when running php artisan in your Snipe-IT container:
|
1 |
Could not open input file: artisan |
You are likely in the wrong directory. Navigate to the application root first:
bash
|
1 2 |
<span class="token token">cd</span> /app/www <span class="token token">chmod</span> +x artisan |
Then run your command again. For example, to create the initial admin user:
bash
|
1 2 3 4 5 6 7 8 9 10 11 |
php artisan snipeit:create-admin <span class="token token">\</span> --first_name<span class="token token">=</span>buyenne <span class="token token">\</span> --last_name<span class="token token">=</span>buyenne <span class="token token">\</span> --email<span class="token token">=</span>mail@example.com <span class="token token">\</span> --username<span class="token token">=</span>admin <span class="token token">\</span> --password<span class="token token">=</span>xxxxxxxx ``<span class="token token">`</span> **Expected output:** <span class="token token">`</span>`` New user created |