Last active
December 26, 2015 20:49
-
-
Save ishtaka/7211046 to your computer and use it in GitHub Desktop.
[PHP]Symfony1.4.20のリリースパッケージからビルド
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# build | |
cd path/to/document_root | |
mkdir -p project_dir/lib/vendor | |
cd /lib/vendor/ | |
wget http://www.symfony-project.org/get/symfony-1.4.20.tgz | |
tar zxvf symfony-1.4.20.tgz | |
mv symfony-1.4.20 symfony | |
rm symfony-1.4.20.tgz | |
cd ../../ | |
php lib/vendor/symfony/data/bin/symfony generate:project projectname | |
php symfony generate:app frontend | |
ln -s /path/to/document_root/project_dir/lib/vendor/symfony/data/web/sf /path/to/document_root/project_dir/web | |
vim web/.htaccess | |
# RewriteBase /project_dir/web/ | |
# if dev enviroment is not localhost | |
# vim web/frontend_dev.php | |
# comment out 5 ~ 8 lines | |
# if php 5.5 or later | |
# vim apps/frontend/config/settings.yml | |
# error_reporting: <?php echo (E_ALL | E_STRICT) ^ E_DEPRECATED ."\n" ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment