Host Laravel 5.2 in Openshift for Free
lets cut crap about intro and other stuff and head to main topic :D
Steps:
-
Create new account or login existing account in Openshift.
-
Create new HHVM application or go to this HHVM in Openshift and set your domain name and application name in form
-
Create Application by Click the link at end of form.
-
After go to your Application page then clone your source code by using command "git clone ssh://[email protected]/~/git/appname.git/"
-
"cd appname" and again use command "git clone https://github.com/laravel/laravel.git"
-
use command "composer update" to install Laravel dependency.
-
go to directory config nginx.d and open default.conf.erb and modify this line "root <%= ENV['OPENSHIFT_REPO_DIR'] %>public;" i replace openshift variable with "public" to point nginx to public as root.
-
and run git command "git add . -f "
-
then, commit changes "git commit -am "your message"
-
Push your change to master " git push"
Check site url , let me know if this work. [ well its work for me]
Laravel rocks.
Link: