Getting a working copy¶
1. Clone the project¶
cd ~Sites
git clone ssh://git.snowcap.be/var/git/PROJECTNAME.git PROJECTNAME.local
2. Install vendors¶
Log in into your vagrant instance, and load vendors by
cd /var/www/PROJECTNAME.git
composer install
3. Assets¶
app/console assets:install --symlink web
app/console assetic:dump
4. Database setup¶
Create the database
app/console d:database:create
If your project runs under Doctrine migrations, you can launch
app/console d:migrations:migrate
Otherwise, update the schema by introspection
app/console d:schema:update --force
And if the project has fixtures
app/console d:fixtures:load
4. Check the result in your browser¶
You can then edit your host file in order to be able to access the website. On Mac OS, you can open the terminal and type:
sudo nano /etc/hosts
Add the following lines to the host file:
127.0.0.1 PROJECTNAME.local
- Normally, you can then access the newly created bundle in your browser::
- http://PROJECTNAME.local/