@evie Check if /nova directory is on your server, within your application's root directory. If not, it might be added to gitignore and was not sent to the server when you committed and deployed.
[RuntimeException] Source path "./nova" is not found for package laravel/nova
Hi All,
I'm hoping someone can help me out here! I have installed nova and been testing it locally...works perfectly! When I went to deploy it through laravel forge I got this error
[RuntimeException]
Source path "./nova" is not found for package laravel/nova
ssh key is all good, I'm thinking that I might be missing something on my forge script or env file or it might have something to do with nova authorisations? I've been looking around and I can't seem to find the solution.
here is my forge script
cd /home/forge/ninetyfourmagazine.co.uk
git pull origin master
composer install --no-interaction --prefer-dist --optimize-autoloader
php artisan config:cache
echo "" | sudo -S service php7.2-fpm reload
if [ -f artisan ]
then
php artisan migrate --force
fi
Here is my composer.json
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": [
"framework",
"laravel"
],
"license": "MIT",
"require": {
"php": "^7.1.3",
"ctessier/nova-advanced-image-field": "^1.0",
"fideloper/proxy": "^4.0",
"guzzlehttp/guzzle": "^6.3",
"intervention/image": "^2.5",
"jorenvanhocht/laravel-share": "^3.0",
"laravel/cashier": "^9.3",
"laravel/framework": "5.8.*",
"laravel/nova": "*",
"laravel/tinker": "^1.0",
"laravelcollective/html": "^5.8",
"nesbot/carbon": "^2.17",
"stripe/stripe-php": "^6.34"
},
"require-dev": {
"barryvdh/laravel-debugbar": "^3.2",
"beyondcode/laravel-dump-server": "^1.0",
"filp/whoops": "^2.0",
"fzaninotto/faker": "^1.4",
"mockery/mockery": "^1.0",
"nunomaduro/collision": "^2.0",
"phpunit/phpunit": "^7.5"
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true
},
"repositories": [
{
"type": "path",
"url": "./nova"
}
],
"extra": {
"laravel": {
"dont-discover": []
}
},
"autoload": {
"psr-4": {
"App\": "app/"
},
"classmap": [
"database/seeds",
"database/factories"
]
},
"autoload-dev": {
"psr-4": {
"Tests\": "tests/"
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"post-autoload-dump": [
"Illuminate\Foundation\ComposerScripts::postAutoloadDump",
"@php artisan package:discover --ansi"
],
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php artisan key:generate --ansi"
]
}
}
any advice would be much appreciated.
Your composer.json assumes that there is an ./nova directory already existing on the server like what @haykd already mentioned. Consider updating your composer.json to use composer itself to install nova instead of referencing to a path. https://nova.laravel.com/docs/2.0/installation.html#installing-nova-via-composer
Please or to participate in this conversation.