Commit 26225c18 authored by Hermann Mayer's avatar Hermann Mayer

Added Deployment Submodule. Clean up.

parent 7d2a135a
[submodule "deploy"]
path = deploy
url = git@gitorious.hermann-mayer.net:jity/jity-deployment.git
This diff is collapsed.
Install Notes
-------------------------------
=============
# Make Logs and Cache Directories
mkdir -p app/cache/
mkdir -p app/logs/
Clone latest dependencies by init the Git Submodules
# Clear Logs and Cache Directories
rm -rf app/cache/*
rm -rf app/logs/*
git submodule init
git submodule update
# Set Permissions
chmod 777 -R app/logs/
chmod 777 -R app/cache/
Make Logs and Cache Directories
# Copy parameters.ini.sample to parameters.ini
cp app/config/parameters.yml.sample app/config/parameters.yml
mkdir -p app/cache/
mkdir -p app/logs/
# Make Config Edits
vim app/config/parameters.yml
Clear Logs and Cache Directories
# Install Composer
pushd bin; curl -s https://getcomposer.org/installer | php; popd
rm -rf app/cache/*
rm -rf app/logs/*
# Update all Vendor Libs
php bin/composer.phar update
Set Permissions
# Run Final Setup Check, and fix as much as possible
php app/check.php
chmod 777 -R app/logs/
chmod 777 -R app/cache/
Copy parameters.ini.sample to parameters.ini
cp app/config/parameters.yml.sample app/config/parameters.yml
Make Config Edits
Deploy Notes
-------------------------------
vim app/config/parameters.yml
Install Composer
pushd bin; curl -s https://getcomposer.org/installer | php; popd
Update all Vendor Libs
php bin/composer.phar update
Run Final Setup Check, and fix as much as possible
# Install Composer
pushd bin; curl -s https://getcomposer.org/installer | php; popd
php app/check.php
# Update all Vendor Libs
php bin/composer.phar update
Create Database
# Set Permissions
chmod 777 -R app/logs/
chmod 777 -R app/cache/
php app/console doctrine:database:create
# Build Assetics
php app/console assetic:dump --env=prod --no-debug
Build all Tables inside
php app/console doctrine:schema:create
Load all Fixtures
php app/console doctrine:fixtures:load
Deploy Notes
============
Update all Vendor Libs
php bin/composer.phar update
Database Setup Notes
-------------------------------
Set Permissions
# Create Database
php app/console doctrine:database:create
chmod 777 -R app/logs/
chmod 777 -R app/cache/
# Build all Tables inside
php app/console doctrine:schema:create
Build Assetics
# Load all Fixtures
php app/console doctrine:fixtures:load
php app/console assetic:dump --env=prod --no-debug
<?xml version="1.0" encoding="UTF-8"?>
<!--Project Resource-->
<project name="project" default="deploy">
<import file="deploy/lib/basebuild.xml" />
<!--Just depend on our service-->
<target name="deploy" depends="initService">
<packagingFetch />
<packagingArchiv />
<delivery />
<install />
</target>
</project>
deploy @ 6556ba6c
Subproject commit 6556ba6c14001435b8f770ed6bf67cff08cdbcaf
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment