Created
February 6, 2017 02:39
-
-
Save glmdev/26736f07c3ad85ade4e895c53dfc7b7c to your computer and use it in GitHub Desktop.
Updates Cloud9 workspaces and initializes a PHP7 Laravel workspace.
This file contains hidden or 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
sudo apt-get install software-properties-common -y | |
sudo add-apt-repository ppa:ondrej/php -y | |
sudo apt-get update && sudo apt-get purge php5-fpm -y && sudo apt-get --purge autoremove -y && sudo apt-get install php7.0-fpm php7.0-mysql php7.0-curl php7.0-gd php7.0-json php7.0-mcrypt php7.0-opcache php7.0-xml -y | |
sudo apt-get install php7.0-mbstring -y | |
sudo service php7.0-fpm restart | |
sudo phpenmod mbstring | |
cd ../ && sudo rm -rf workspace/ && git clone https://github.com/laravel/laravel workspace | |
cd workspace/ | |
cp .env.example .env | |
composer install | |
php artisan key:generate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment