Deploy Laravel for GitHub Actions
View on GitHub

Step 7: Directory structure

Is your application already deployed?

(select an option above)

Cool, you can continue to the next step.

Your directory structure should look like this:

project
├── .env
├── current/
├── releases/
└── storage/

You don't have to make any changes to your directory structure. You can continue to the next step.

Your directory structure should look like this:

project
├── current/
├── releases/
└── shared/
   ├── .env
   └── storage/

You don't have to make any changes to your directory structure. You can continue to the next step.

Your directory structure should look like this:

project
├── app/
├── bootstrap/
├── ...
├── storage/
├── ...
├── .env
└── ...

You don't have to make any changes to your directory structure. You do have to change your webroot, that will be explained in a later step.

The deployment script will create two new directories: "current" and "releases". Your directory structure will end up looking like this:

project
├── app/
├── bootstrap/
├── current/
├── ...
├── releases/
├── storage/
├── ...
├── .env
└── ...

The deployment script won't delete or move any of your existing files.

Only the "current", "releases", "storage" directories, and the ".env" file are necessary. You can optionally delete the other files and directories after you've run your first successful deployment using this script.

You can continue to the next step.

Take some time to read the other options on this page. Your setup will probably look like one of them. You probably won't have to make any changes to your directory structure.

If your directory structure is different from all the other options on this page, then please contact me, I'm very curious to learn why.