How To Upload Laravel with vuejs To Shared Hosting - laravel

I upload my laravel project in Host domain i work with laravel and vuejs, any easy way to deploy it?

Just follow the following steps to deploy your Laravel and vue.js application to a shared hosting.
generate your product vue build using npm run prod
upload all the changes and project to a git repository.
clone your git repository to your shared hosting, mainly via integrated terminal in some shared hosting or via ssh key access.
redirect your domain or subdomain directory to /public folder.
run composer install
run cp .env.example .env
setup .env files according to database configuration and emails etc.
run php artisan migrate
run php artisan key:generate
run php artisan storage:link if you want media uploading to your server.

Related

Laravel deploying 403 Access Forbideen

I'm trying to deploy my laravel 8 project in my hosting.
After I publich whole files of the projct, I got the 403 Access Forbidden.
My websites on the server work perfectly, but this project I don't know what's is the problem.
And I'm sure that the problem in the project files not in the server.
This is the website: [Sheeks] (http://manage-sheek.manarat-free.com/)
If all of your configurations at server is correct then it's because of cached data. Run commands:
php artisan config:cache
php artisan route:cache

How to setup laravel 7 on shared hosting?

I recently transposed an existing web site from symfony to laravel for which I am a newbie.
At the moment my site is running with Laravel locally using the embedded server.
I created a repo on github and pushed my site on it.
Then I connected to my site via ssh and cloned the github repo on the remote server (shared hosting).
I created a .env file from the .env-example remotly.
I created a subdomain that points to the public folder of the cloned site.
I modified a line in public/index.php to
$app = require_once __DIR__.'/bootstrap/app.php';
I launched a composer update command and then run
php artisan key:generate it returned success but I couldn't find any key in the .env file thus I used the same key I use locally.
When I visit the subdomain I get a page like this one:
Index of / Name Last modified Size Description cgi-bin/
2020-09-13 15:23 -
I very probably missed something

how to Deploy VueJS, laravel App on live server

i want to deploy the App of laravel with inbuilt vuejs
on my local i just run the "PHP ARTISAN SERVE"
and boom its works for me
but what about the live ?
its not working on live server
my .htaccess and index.php is in public folder
for Laravel we just move the index.php and .htaccess out of public folder and edit some code lines and it will work.
but how it will work with vuejs templates ?
Follow these steps:
Please create a zip folder of your project except the vendor folder.
Deploy the folder on live and extract.
Change your DB and other configuration in env file.
In the terminal on live server, run this command : composer update
After the installation, look for your front page.
Hope it should work fine.

Creating symlink setting up Laravel 5.6 on a remote server

I'm setting up a Laravel 5.6 site in a remote shared hosting server.
I'm failing at creating the storage symlink. I'm executing a file with the following line (as Laravel documentation and other tutorials instruct):
symlink('/home/nataliag/laravel/storage/app/public', '/home/nataliag/public_html/storage');
this creates a symlink, but instead of getting my images with mydomain.com/img/..., i have to go mydomain.com/storage/img/....
what link the php artisan storage:link creates? because that works in local, and all my links are created following that structure

Laravel 5.5 How to access website insted of /public folder

I have setup laravel 5.5 on my localhost and want to
access the project directly instead of /public directory.
My Current link is: http://localhost/my_laravel/public/
I Want to access as: http://localhost/my_laravel/
start a server using
php artisan serve
in cmd/console go to the project directory and run the above cmd.
it will run your app on http://localhost:8000

Resources