Skip to content

Commit

Permalink
changes #2503: plateform installation file are added with details.
Browse files Browse the repository at this point in the history
  • Loading branch information
G Balraj committed Mar 20, 2019
1 parent 1a4cbee commit a921e5c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
1 change: 0 additions & 1 deletion .platform.app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ crons:
hooks:
deploy: |
set -e
# Mainly relevant for eZ Platform demo usage, for own setup adapt this or remove and rely on migrations.
if [ ! -f /tmp/.sql.installed ]; then
php server/php/platformsh_install.php
fi
13 changes: 13 additions & 0 deletions server/php/platformsh_install.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
<?php
/**
* Platform.sh installation file
*
* PHP version 5
*
* @category PHP
* @package Restyaboard
* @subpackage Plugin
* @author Restya <[email protected]>
* @copyright 2014-2018 Restya
* @license http://restya.com/ Restya Licence
* @link http://restya.com/
*/
$current_dir = dirname(__FILE__);
exec('chmod -R 0777 ' . $current_dir . '/../../tmp ' . $current_dir . '/../../media');
exec('echo "sql file executed" > /tmp/.sql.installed');
Expand Down

0 comments on commit a921e5c

Please sign in to comment.