-3

I'm working on a Laravel project. I installed Laravel Nova via

php artisan 

and integrated to the project locally. I know how to deploy files, but I don't know how should I deploy this package to the server via filezilla. I hope my question is understandable enough.

Of course there is no log which I can run

php artisan nova:value.........

to install it on the server.

4
  • As far as I know, running commands requires ssh access to the server. Can you use your ftp credentials(or other credentials) to access ssh? Commented Jan 20, 2023 at 17:11
  • You need to have SSH access to the server, of course you could zip the application and upload it but that is 100% not what a 1 person business does. Use GIT and AWS/DigitalOcean or anything similar to do deployments, as normal devs do Commented Jan 20, 2023 at 17:19
  • Yes, I have SSH access. but where/how do I run the commands? Commented Jan 20, 2023 at 17:39
  • In the root of your project like you did locally Commented Jan 23, 2023 at 7:09

1 Answer 1

0

To deploy a Laravel package via FileZilla, you will need to do the following:

Connect to your server via FTP using FileZilla.

Navigate to the root directory of your Laravel project on your server.

Drag and drop the package files from your local machine to the new folder on your server.

In your Laravel project's root directory, open the composer.json file and add the package to the "require" section.

Run the command "composer update" on your server to install the package and its dependencies.

Finally, run the command "php artisan config:clear" and "php artisan config:cache" to clear the config cache and update your application.

Sign up to request clarification or add additional context in comments.

2 Comments

If he can run commands, he can surely run composer install, no need to create a directory
So is this answer still valid?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.