Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Latest commit

 

History

History
55 lines (40 loc) · 1.26 KB

README.md

File metadata and controls

55 lines (40 loc) · 1.26 KB

justorderit

Description

A product database where you can order a product and use a cronjob to send an email with the orders to process.

Not ready for prime time. Use at your own risk.

justorderit

Installation

Create MySQL database and a user

mysql -uroot -p
MySQL> create datbase justorderit;
MySQL> grant usage on *.* to justorderit@localhost identified by 'YOUR_PASSWORD';
# remove the \ before the * it's just here to prevent bad syntax highlighting
MySQL> grant all privileges on justorderit.\* to justorderit@localhost;
MySQL> exit;
git clone https://github.com/NicolasCARPi/justorderit/
# install composer (not shown)
# install php dependencies
php composer.phar install --no-dev
# mysql structure
php bin/console doctrine:schema:update --force
# fix permissions
sudo chown -R www-data:www-data var/cache var/logs var/sessions
mkdir -p web/uploads/quotes
sudo chown -R www-data:www-data web/uploads

Setting up the cronjob

curl https://justorderit/cron

Dev

Starting the dev server:

php bin/console server:run

Clearing the cache on the prod server after an update:

rm -rf var/cache/prod/