- Vagrant
- Vagrant plugin landrush or host manager
- You need to activate OAuth for any of the following social network you want to use:
- All commands that should be executed on your machine are prefixed by
$
- All commands that should be executed on the VM are prefixed by
⇒
$ vagrant up
Get in the Vagrant VM, in the app folder:
$ vagrant ssh
In your guest machine run the following command:
⇒ composer install
⇒ php app/console doctrine:schema:update --force
Checkout the dev/generate-contributions
branch in your repository.
$ git checkout dev/generate-contributions
In the guest machine, in the /vagrant
directory then run the following command
⇒ php app/console haphpy:contributions:generate <quantity>
the optional quantity
parameter can be set up to 768. It defaults to 100.
⚠️ Currently, the command does not clean either the database or the file system from old contributions.
Here are the commands to run in your guest machine:
⇒ rm -rf /var/haphpy/contributions/*/*
And for the database
⇒ mysql -u afup -p -e 'DELETE FROM contribution' haphpy;
password: afup
Accessing the web pages
- prod like: http://haphpy-birthday.dev
- dev (debug): http://haphpy-birthday.dev/app_dev.php
- root password: afuprocks
- database: haphpy
- user: afup
- password: afup
Before committing, be sure to run the tests:
⇒ bin/phpunit -v -c app/ src
and to check the Coding Standards:
⇒ bin/coke