Skip to content
This repository has been archived by the owner on May 30, 2019. It is now read-only.

Commit

Permalink
Production settings
Browse files Browse the repository at this point in the history
added composer.lock to speed up dependencies download
removed old(?) cli commands
moved commands from install.sh to elcodi:install
  • Loading branch information
EmanueleMinotto committed Oct 9, 2015
1 parent 59d6203 commit fd4f919
Show file tree
Hide file tree
Showing 6 changed files with 6,366 additions and 27 deletions.
1 change: 1 addition & 0 deletions app/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public function registerBundles()
new Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle(),
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
new Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle(),
new Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle(),
new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),

new Knp\Bundle\GaufretteBundle\KnpGaufretteBundle(),
Expand Down
349 changes: 349 additions & 0 deletions app/DoctrineMigrations/Version20151007214911.php

Large diffs are not rendered by default.

21 changes: 1 addition & 20 deletions app/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,4 @@ case $FLAG in
esac

# Creating database schema and tables
/usr/bin/env php app/console --no-interaction doc:dat:cre --if-not-exists
/usr/bin/env php app/console --no-interaction doc:sch:dro --force
/usr/bin/env php app/console --no-interaction doc:sch:cre

/usr/bin/env php app/console --no-interaction doctrine:fixtures:load --fixtures="src/Elcodi/Fixtures"

# Add geographic information by ISO code. Adding "Spain" as a reference
/usr/bin/env php app/console elcodi:locations:populate ES

# Loads elcodi plugins. See Elcodi\Component\Plugin\Services\PluginManager
/usr/bin/env php app/console elcodi:plugins:load

# Enables the store and makes it visible. Also enables the default template
/usr/bin/env php app/console elcodi:configuration:set store.enabled 1
/usr/bin/env php app/console elcodi:configuration:set store.under_construction 0
/usr/bin/env php app/console elcodi:configuration:set store.template "\"StoreTemplateBundle\""

# Assets & Assetic
/usr/bin/env php app/console --no-interaction assets:install web --symlink
/usr/bin/env php app/console --no-interaction assetic:dump
/usr/bin/env php app/console --no-interaction elcodi:install
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"doctrine/doctrine-bundle": "^1.5.0",
"doctrine/annotations": "^1.2",
"doctrine/doctrine-fixtures-bundle": "^2.2",
"doctrine/doctrine-migrations-bundle": "^1.0",

"twig/twig": "^1.18",
"twig/extensions": "^1.0",
Expand Down
Loading

0 comments on commit fd4f919

Please sign in to comment.