Deploying Laravel on Google Cloud



Since Google Cloud Platform Bitnami LAMP comes ready with composer and Laravel, we can drive straight in, after you spin up a new LAMP virtual machine.

The public directory accessible to the world is htdocs.

Lets change directory to htdocs by issuing this command "cd htdocs"

Run the following command
composer global require "laravel/installer"
Next, we will create a application using the command below: -

$HOME/.composer/vendor/bin/laravel new blog

Please note that this will create a directory called blog under htdocs.

Important! Ensure a folder called storage is writable by

cd blog

Then issue the following command

chmod -R o+w storage

Fire up your brower and browse to the following link
http://your-lamp-server-ip/blog/public/index.php
Your laravel page will fire up. :)







Comments

Popular posts from this blog

ionic2 cordova build android - Unable resolve gradle 2.2.3

OpenCover code coverage for .Net Core

Using Custom DLL with IronPython / Scripts