Comment on page
Create a deployment script
The following deployment script performs the following steps
- 1.Creates a new deployment folder
- 2.Clones the repository into this deployment folder
- 3.Copies the .env file from the master folder
- 4.Runs Composer Install so that the project has the same dependencies as your committed version (see note below regarding Composer version)
- 5.Creates links for storage to the master storage folder and from storage/app/public to the public/storage folder
- 6.Finally creates a symlink from Live to the deployment folder
build.sh
1
#!/bin/sh
2