This is a short and simple guide to deploy a existing Laravel application to Openshift.
git clone https://github.com/limatheus/laravel-deploy-openshift.git
cp -Rap .openshift /path/to/your/existing/application
Change your connection
parameters according your database driver.
// database.php config file
// file START ommited
'mysql' => [
'driver' => 'mysql',
'host' => env('DB_HOST', env('OPENSHIFT_MYSQL_DB_HOST', 'localhost')),
'port' => env('DB_PORT', env('OPENSHIFT_MYSQL_DB_PORT', 3306)),
'database' => env('DB_DATABASE', env('OPENSHIFT_APP_NAME', 'forge')),
'username' => env('DB_USERNAME', env('OPENSHIFT_MYSQL_DB_USERNAME', 'forge')),
'password' => env('DB_PASSWORD', env('OPENSHIFT_MYSQL_DB_PASSWORD', '')),
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
'strict' => false,
]
// file END ommited
// database.php config file
// file START ommited
'pgsql' => [
'driver' => 'pgsql',
'host' => env('DB_HOST', env('OPENSHIFT_POSTGRESQL_DB_HOST', 'localhost')),
'port' => env('DB_PORT', env('OPENSHIFT_POSTGRESQL_DB_PORT', 5432)),
'database' => env('DB_DATABASE', env('OPENSHIFT_APP_NAME', 'forge')),
'username' => env('DB_USERNAME', env('OPENSHIFT_POSTGRESQL_DB_USERNAME', 'forge')),
'password' => env('DB_PASSWORD', env('OPENSHIFT_POSTGRESQL_DB_PASSWORD', '')),
'charset' => 'utf8',
'prefix' => '',
'schema' => 'public',
]
// file END ommited