Point Tools is a service which provides additional features for Point.im microblog users.
Application setup is quite simple:
git clone https://[email protected]/skobkin/point-tools.git
cd point-tools
composer create-project skobkin/point-tools -s dev
cd point-tools
Set up appropriate write privileges for app/cache
and app/logs
.
# In developer environment:
composer install
# In production environment
composer install --no-dev --optimize-autoloader
After dependencies installation you will be asked for database credentials of PostgreSQL database and some other application parameters.
php app/console doctrine:migrations:migrate
php app/console assets:install web --symlink
crontab -e
You can use following jobs as an example:
# point.skobk.in
*/10 * * * * /usr/bin/php /path/to/point-tools/app/console point:update:subscriptions --env=prod
0 0 * * * /usr/bin/php /path/to/point-tools/app/console point:update:subscriptions --all-users --env=prod
See app/crontab
for more advanced usage.
php app/console telegram:webhook set
php app/console telegram:webhook delete
export SYMFONY__TEST_DATABASE_USER=some_database_user
export SYMFONY__TEST_DATABASE_PASSWORD=some_database_password
export SYMFONY__TEST_DATABASE_NAME=some_database_name
export SYMFONY__TEST_DATABASE_PORT=postgresql_port
export SYMFONY_ENV=test
php app/console doctrine:fixtures:load --no-interaction
phpunit -c app/