Published 5 months ago by mattnewark
Good Morning All,
I am trying to deploy my site on a VPS and I have followed the below guide created by @Snapey so that I am hiding the core code above the public_html folder:
The issue that I have now is when I SSH into the folder and try and run the artisan command it doesn't work. I go to the folder core folder and try to run the queue:listen command and it seems to ignore the request. I run php artisan and it doesn't work either, no error.
Can someone please point me in the right direction
So I have all files apart from the public folder above the public_html in a folder called auditstagingcore, I have emptied the public folder contents into a folder called auditstaging below the public_html. I have also changed the index file to point to the new core folder.
I dont like this method of deployment as from past experience there is always small issues that arise and no clear resolution.
What I would do is upload everything into the public_html folder, including Laravels public folder.
Then on your VPS alter the apache2 conf to tell it the sites root is public_html/public
Or your nginx conf. Whichever you are using.
Be sure to revert the index.php to the default path that ships with laravel.