Last active
June 15, 2021 12:35
-
-
Save ijobling/4aa73a3258ef2c5538aa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
########################################################################## | |
#### Steps to set up Laravel Project in Codio | |
#### Created by Ian Jobling 2018 | |
#### Updated by Mark Tyers 2021 | |
########################################################################## | |
#### Instructions | |
#### From the Codio Dashboard, create a new project from the LAMP stack | |
#### Give your project a name and click Create. | |
#### Update the stack | |
#### Open a Terminal window from the Tools->Terminal window | |
sudo apt update -y && sudo apt full-upgrade -y | |
#### Install the zip and unzip tools as these are needed by the installer | |
sudo apt install -y zip unzip | |
#### Install Composer | |
curl -sS https://getcomposer.org/installer | php | |
#### Move installation file | |
sudo mv composer.phar /usr/local/bin/composer | |
#### If required, create a stack at this stage | |
#### Create Laravel project | |
composer create-project laravel/laravel --prefer-dist | |
#### Move files to workspace and remove initial folder | |
mv laravel/{*,.*} ~/workspace | |
#### ignore errors re Device or resource busy | |
rm laravel -r | |
#### Move default installation files | |
mv server.php index.php | |
#### Access Laravel | |
#### Go to Preview menu and select Box URL | |
#### End of Instructions | |
########################################################################## |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment