# create the space to store all your source code.
# make sure to back this up!
mkdir -p ~/svn/repositories
svnadmin create ~/svn/repositories/myproject
# set up the blank directory structure based on the svn best practices doc.
# you can use this in the future to create new project repositories.
mkdir ~/presvn
cd ~/presvn
mkdir -p branches tags trunk lib/vendor
# chuck the blank dir into the repository
cd
svn import presvn file:///Users/username/svn/repositories/myproject -m 'Initial Directory Structure'
# check out the trunk and rename it to your project name
svn checkout file:///Users/username/svn/repositories/myshout/trunk myproject
# go into the directory and set up svn:externals for symfony
cd myproject
# when the the text editor pops up after this command you want to enter:
# symfony http://svn.symfony-project.com/branches/1.2
# in the text editor
svn propedit svn:externals lib/vendor
# after saving and exiting the browser do an svn update:
svn update
# then generate the symfony project
php lib/vendor/symfony/data/bin/symfony generate:project myproject
Monday, October 19, 2009
How to create a new symfony project and svn repository on OS X
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment