Skip to content

Instantly share code, notes, and snippets.

@wizioo
Last active January 28, 2016 09:24
Show Gist options
  • Save wizioo/79b4ed3591d60698b7fc to your computer and use it in GitHub Desktop.
Save wizioo/79b4ed3591d60698b7fc to your computer and use it in GitHub Desktop.
Deploy laravel 5 app to OVH Pro mutualised server
# User specific aliases and functions
alias php='/usr/local/php5.6/bin/php'
alias composer='php ~/composer.phar'

Deploy laravel 5 app to OVH Pro mutualised server

Objectives

OVH Pro server has some limitations (no bower, no node.js...). But if you want to have a kind of continuous integration it's still possible.

Steps

  1. ssh into your server space.
  2. edit .bashrc with vi .bashrc
  3. add instructions from this repo .bashrc in your .bashrc and save -> this adds alias to php5.6 & for composer (not installed yet)
  4. quit ssh and relog.
  5. install composer with curl -sS https://getcomposer.org/installer | php
  6. go to your app folder and install dependencies: composer install --no-dev

Steps in disorder to explain

  • configure Git repo
  • configure domains to point on public folder
  • make specific .env
  • connect distant DB to Sequel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment