-
-
Notifications
You must be signed in to change notification settings - Fork 11
Installation
Bizley edited this page Jan 7, 2019
·
2 revisions
-
Install TimeClock using Composer:
composer create-project --prefer-dist bizley/timeclock timeclock
-
Prepare virtual host pointing to
/public
directory. -
Prepare configuration for DB of your choice. Place it in
/src/config/db.php
. -
Modify the
/src/config/web.php
file to change:-
timeZone
(defaultUTC
), -
language
(defaulten-US
;pl
translations are provided), -
components
>mailer
configuration to actually send emails (needed for password reset), -
params
>company
(defaultCompany Name
; displayed in footer and other layout places), -
params
>email
(default[email protected]
; used as the email sender address for emails), -
params
>allowedDomains
(default['@company.com']
; array with email domains allowed for registration).
-
-
Change
/public/index.php
file to setYII_DEBUG
mode tofalse
andYII_ENV
environment toprod
. -
Apply migrations by running in console
php yii migrate
. -
Start webserver and register first account.
-
If you want to make an account to be admin run in console
php yii admin/set ID
whereID
is DB identifier of account to be set (usually first one is1
).