---
description: In this part, we will cover how to import the project and make website live.
---

# Import and deploy

## Import file

1.  First open `File manager` from cPanel.

    <figure><img src="https://2794514790-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmmjJuk8j1ruVTJbUPyXz%2Fuploads%2FKXHNdIGVsEijr2sT5eMX%2Fimage.png?alt=media&#x26;token=17ad1b3b-114e-4a2b-8d89-37fc00f996a5" alt=""><figcaption></figcaption></figure>
2.  Now select `public_html` folder and select `Upload` button.

    <figure><img src="https://2794514790-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmmjJuk8j1ruVTJbUPyXz%2Fuploads%2Fa0UqGs39OS0mgLqOe5JE%2Fimage.png?alt=media&#x26;token=4517196a-ca03-4968-b188-129f448470ba" alt=""><figcaption></figcaption></figure>
3.  Now upload the `digital-hr-file.zip` file. Points shown in image down below.

    * Now right click on `digital-hr-file.zip` file and click `Extract` option.
    * Double click `digital-hr-file` folder and select `Select All` button.
    * Now click `Move` button
    * In path, remove current folder name: `digital-hr-file.`
    * Click `Move Files`.

    <figure><img src="https://2794514790-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmmjJuk8j1ruVTJbUPyXz%2Fuploads%2FSPCVTvnTpzDQWWVWnS9M%2Fimage.png?alt=media&#x26;token=f5880f81-4d28-45f6-9443-b341f2065e41" alt=""><figcaption></figcaption></figure>
4.  After import is successful, right click `.env` file and select edit button. If you get a popup, you will see edit button again. Click edit button and you will be redirected to edit view.

    <figure><img src="https://2794514790-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmmjJuk8j1ruVTJbUPyXz%2Fuploads%2FEdCBV0sbbtBKL4v1PsfY%2Fimage.png?alt=media&#x26;token=5914ed66-0853-4437-b6c6-4ca05c9d7202" alt=""><figcaption></figcaption></figure>
5.  Now do the changes as shown in image

    <figure><img src="https://2794514790-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmmjJuk8j1ruVTJbUPyXz%2Fuploads%2F5q499a2fNSrxrOvCqvXM%2Fimage.png?alt=media&#x26;token=8162ec43-375f-4f63-8fb9-5836eb8c1031" alt=""><figcaption></figcaption></figure>
6.  Select Save Changes button.

    <figure><img src="https://2794514790-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmmjJuk8j1ruVTJbUPyXz%2Fuploads%2Fg4Qi1tJTVAJrFeooJKQZ%2Fimage.png?alt=media&#x26;token=5ea32a6e-b510-4145-ac25-6cdf21051800" alt=""><figcaption></figcaption></figure>

## Laravel setup

1. Now search `terminal` in cPanel.
2. Now type as follows:
   1. `cd public_html`
   2. `composer install`
   3. `php artisan migrate`
   4. `php artisan passport:install`
   5. `php artisan key:generate`
   6. `php artisan storage:link`
   7. `php artisan db:seed`
   8. `composer dump-autoload`

This is all you need to make DigitalHR fully working. Now you can access `DigitalHR` using `your-domain-name.com`.&#x20;

## Access admin portal

| Username | Password |
| -------- | -------- |
| admin123 | admin123 |
