For both macOS & Linux
NOTE: Match7.java
isn't working properly on macOS.
php 5.6.1+ is required.
Edit the Config.php
located at the root of the project,
otherwise mail client, mysql server may not work. At least
the following constants are needed to be edited:
Interface Config{
const MYSQL_USER = 'root';
const MYSQL_PASS = 'root';
const MYSQL_DB = 'awords';
.
.
.
const MAIL_USER = '[email protected]';
const MAIL_PASS = 'example_password';
const MAIL_FROM = '[email protected]';
.
.
.
}
Set output_buffering = off
in php.ini
file.
bash ./scripts/add_to_crontab.sh
php -S 127.0.0.1:8080 ./router.php
(Also works with Apache2 when htaccess
and modrewrite
enabled)
(This process is only applied to Linux distributions with Apache Server)
- Check which
user
is running:ps aux
- Add that user (assuming
www-data
) to the group:sudo chgrp -R www-data ./ && sudo chmod -R g+w ./
For the sake of convenience, two scripts have been added in the scripts
folder.
deploy.sh
: Run this before committing as it'll switch the configuration file (ie.Config.php
) to the factory mode, as well as take care of DB. It takes one argument (sql version number) as it backs up the new sql file automatically.revert.sh
: Revert the configuration file to the one that you were using previously (if you were)
- Edit last project
- Fork this project
- Change info
- Delete account
- Homepage