From 08db9375bf0af7634bf1398e10d5f2a3a5ecda87 Mon Sep 17 00:00:00 2001 From: frju365 Date: Thu, 2 Mar 2017 11:12:39 +0100 Subject: [PATCH 1/3] Update install --- scripts/install | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 1964e9e..d1b36f8 100644 --- a/scripts/install +++ b/scripts/install @@ -102,8 +102,24 @@ sudo php -r "if (hash_file('SHA384', 'composer-setup.php') === '55d6ead61b29c7bd sudo php composer-setup.php sudo php -r "unlink('composer-setup.php');" sudo ./composer.phar install --no-dev -o; +# Create database schema +sudo ./bin/roadiz orm:schema-tool:create -n +# Install base fixtures sudo ./bin/roadiz install -n -sudo ./bin/roadiz generate:nsentities; +# Install DefaultTheme +sudo ./bin/roadiz themes:install -n "/Themes/DefaultTheme/DefaultThemeApp" +# Install DefaultTheme node-type, settings and tags +sudo ./bin/roadiz themes:install -n --data "/Themes/DefaultTheme/DefaultThemeApp" +# Generate node-type Doctrine entities +sudo ./bin/roadiz generate:nsentities +# Update database with new node-types +sudo ./bin/roadiz orm:schema-tool:update -n --force +# Add DefaultTheme node fixtures +sudo ./bin/roadiz themes:install -n --nodes "/Themes/DefaultTheme/DefaultThemeApp" +# Clear caches +sudo ./bin/roadiz cache:clear -e dev +sudo ./bin/roadiz cache:clear -e prod +sudo php ./bin/roadiz cache:clear -e prod --preview sudo sudo php ./bin/roadiz users:create $admin_name -n popd From 5667681daeb13cd9d1c2ea5a35a735409e410a7c Mon Sep 17 00:00:00 2001 From: frju365 Date: Thu, 2 Mar 2017 11:35:33 +0100 Subject: [PATCH 2/3] Update config.yml --- conf/config.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/conf/config.yml b/conf/config.yml index cde1fc2..baec957 100644 --- a/conf/config.yml +++ b/conf/config.yml @@ -1,11 +1,11 @@ -appNamespace: chooseAnUniqueNameForYourApp -timezone: Europe/Paris +appNamespace: "chooseAnUniqueNameForYourApp" +timezone: "Europe/Paris" doctrine: - driver: pdo_mysql - host: localhost - user: db_user + driver: "pdo_mysql" + host: "localhost" + user: "db_user" password: 'db_pass' - dbname: db_name + dbname: "db_name" port: null unix_socket: null path: null @@ -17,15 +17,15 @@ security: secret: 'change#this#secret#very#important' mailer: type: null - host: localhost + host: "localhost" port: 25 encryption: false username: '' password: '' entities: - - src/Roadiz/Core/Entities - - src/Roadiz/Core/AbstractEntities - - gen-src/GeneratedNodeSources + - "src/Roadiz/Core/Entities" + - "src/Roadiz/Core/AbstractEntities" + - "gen-src/GeneratedNodeSources" rememberMeLifetime: 2592000 additionalServiceProviders: { } additionalCommands: From eaa6a4dd5e7a1802df5004d6fea18a29fbc7d414 Mon Sep 17 00:00:00 2001 From: frju365 Date: Thu, 2 Mar 2017 11:37:38 +0100 Subject: [PATCH 3/3] Update install --- scripts/install | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/install b/scripts/install index d1b36f8..f186d01 100644 --- a/scripts/install +++ b/scripts/install @@ -87,6 +87,7 @@ POOL_FPM # Modify the config.yml #================================================= +sudo rm $final_path/conf/config.default.yml sed -i "s@db_user@$db_user@g" ../conf/config.yml sed -i "s@db_pass@$db_pass@g" ../conf/config.yml sed -i "s@db_name@$db_name@g" ../conf/config.yml