---
title: "Discussion on \"Deploy Laravel project to Cpanel using Git extension\" | Hashnode"
description: "Discussion on \"Deploy Laravel project to Cpanel using Git extension\". add .cpanel.yml' to your project and change theDEPLOYPATH` to your path\n\n---\ndeployment:\n  tasks:\n    - export DEPLOYPATH=/home/username/public_html/\n    - /bin/cp -r * $DEPLOYPATH\n\ngit init\ngit add .\n`git commit -m \"First Commit\"\ngit branch -M main\n..."
url: "https://hashnode.com/posts/deploy-laravel-project-to-cpanel-using-git-extension/60bec1079cd179337419fa64"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Deploy Laravel project to Cpanel using Git extension](https://m5lil.hashnode.dev/deploy-laravel-project-to-cpanel-using-git-extension?utm_source=hashnode&utm_medium=feed)

add .cpanel.yml' to your project and change theDEPLOYPATH\` to your path --- deployment: tasks: - export DEPLOYPATH=/home/username/public\_html/ - /bin/cp -r \* $DEPLOYPATH git init git add . \`git commit -m "First Commit" git branch -M main ...

Jun 8, 2021 · 1 min read · m5lil.hashnode.dev  
Read the article

-   [#deployment](https://hashnode.com/tag/deployment)
-   [#continuous-deployment](https://hashnode.com/tag/continuous-deployment)

## Written by

[Mahmoud Khalil](https://hashnode.com/@m5lil)

@m5lil

  
[View profile](https://hashnode.com/@m5lil)

Full Stack Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
