Laravel Project Upload To Cpanel Using Private Github Repository - FreeCodeBlog

Last updated: Jun 28, 2022

Private GitHub repository for laravel uploading! Yes, You can easily upload your laravel project to shared hosting cpanel using private GitHub repository. Need to upload Laravel in privately? Yes. Okay then you need to use GitHub private repository and shared hosting cpanel to upload your laravel project privately. Private GitHub repository is the best for laravel deployment. I also recommend to use private repository for deployment. To laravel project upload to cpanel using private GitHub repository first you need to create a laravel project, Second you need to create a SSH key on cpanel shared hosting, Third you need to import cpanel SSH key on GitHub private repository, Forth you need to upload laravel project to GitHub private repository, Fifth you need to connect GitHub project to cpanel. Also you need to do some extra works to upload laravel using GitHub private repository on cpanel.

 

Laravel Project Upload To Cpanel Using Private Github Repository
Laravel Project Upload To Cpanel Using Private Github Repository

 

1. Read Previous Post.

Are you sure you want to use the private GitHub repository to upload laravel projects? Yes! okay Do you have a created laravel project? Have you installed Composer on cpanel? Do you know how to create a repository on cpanel? No!. okay then first you need to read our previous post to continue this post because you will get maximum information by reading our previous post. So don't forget to read upload laravel project to shared hosting using public github repository previous tutorial. I have already explained 90% about this post in our previous post. Again I want to remember you that private repository is the best for your laravel project to upload on shared hosting but I explained about public GitHub repository in our previous tutorial. Public and private GitHub repository almost same. Just you need to know some extra tips (ssh key) to upload laravel project on shared hosting cpanel using private GitHub repository. You need to read this tutorial slowly & carefully. Don't skip any step.

 

2. Did you receive the error message?

Have you read our previous post? Yes!. Okay, have you tried uploading laravel project using GitHub private repository? Yes! Okay then did you receive any error message while trying to upload the Laravel project to the shared hosting cpanel using the private GitHub repository? Yes!. actually you can not connect private GitHub repository to cpanel git version control without SSH key. So you need to use SSH key to upload laravel project using private GitHub repository. You can use the public GitHub repository without the SSH key, but you must use an SSH key for the private GitHub repository. So let's start to read how we can use SSH key on private GitHub repository.

 

3. Create SSH Key.

Now you need to read 2 important steps to connect private GitHub repository to cpanel git version control. You must have a generated SSH key on cpanel. You can not import SSH key on GitHub private repository without generated SSH key. So it is very very important to create a SSH key on cpanel. You need to create a SSH key to connect GitHub private repository to cpanel git version control. remember: Once again I tell you that you can't connect GitHub private repository to cpanel git version control without SSH key. so please read how to create a ssh key on cpanel tutorial to generate a SSH key on cpanel.

 

4. Deploy SSH key On GitHub Private Repository.

Did you create an SSH key in Cpanel? Yes. Okay now you need to read second last important step to laravel project upload on cpanel using private GitHub repository. Actually now you need to deploy created cpanel ssh key on GitHub private repository. Deploy SSH key on your uploaded laravel project GitHub private repository. You can't access GitHub private repository if you don't deploy cpanel ssh key to your created private GitHub repository. Don't forget to read how to deploy cpanel ssh key on GitHub private repository tutorial for more information.

 

I hope you can laravel project upload to cpanel using private GitHub repository now. After deployment on cpanel you need to configuration something like database, mail, session and more. Want to install composer on shared hosting cpanel? Want to discover laravel vendor folder after laravel project upload to cpanel using GitHub private repository? I did explain these in our previous tutorial. So don't worry you will get all laravel configuration information by reading our previous post. If you feel that private GitHub repository is not good for laravel project upload to cpanel then just read our best way to upload laravel to cpanel tutorial. You will understand that only private GitHub repository is the best for laravel project upload to cpanel shared hosting. 

 

Alright So that’s it for today. See you again next tutorial. Thank you.

Post Tags
Post Writer
masum7323
Masum Biswas (@masum7323)

My name is Masum Biswas. I'm a full stack developer. I live in Bangladesh and I love to write tutorials and tools that can help to other artisan. I am a big fan of PHP, Javascript, JQuery, Laravel, MySQL, VueJS, Tailwind CSS and Bootstrap from the early stage.

Follow Me On
Related Posts
How To Create Mysql Database On Shared Hosting Cpanel

Do you want to create a MySQL database in cpanel? Yes. Want to use MySQL database information in PHP, Laravel website? Yes. Okay before deploy PHP,... Read More

Install Custom Design Files On Laravel

Sometimes you may want to install your designed (font-end) files bootstrap, tailwind css, custom css, custom js on laravel. so let's start to read... Read More

How To Make A Word Counter Online Tool In Laravel

Word counter in laravel? Yes. Do you want to make a word counter online tool using laravel? Yes. Want to publish a laravel word counter in laravel... Read More

How To Use Soft Delete In Laravel With Mysql Database

Hi, do you really want to use soft delete to make delete, restore and permanent delete system in laravel for any MySQL database table like posts, p... Read More

Show And Hide Password In Laravel Vue

make show and hide password in laravel vue using laravel ui package. Sometimes, we may require to show hide password input field so, user can see w... Read More