title | date | path | route |
---|---|---|---|
My First Post |
2019-07-10 |
/kompots-git |
/ltc |
This is my first Gatsby post written in Markdown!
-
Head to https://github.com/kompots/ltc and check out project with git clone https://github.com/kompots/ltc.git;
-
From project root directory enter image-builder folder and execute "docker build -t ltc ."
-
"cd .."
-
Start docker container with: "docker-compose up -d";
-
Enter docker database container "docker exec -it ltc_db_1 bash";
- mysql -u root -p (password toor);
- Execute "create database ltc; "
-
Exit container and enter webserver container via "docker exec -it ltc_webserver_1 bash"
-
Start webserver container "docker-compose up -d & enter it via docker exec -it ltc_webserver_1 bash
-
Execute following commands from symfony application console:
- cd /var/www/html/ltc/
- composer update
- database host = db;
- database name = ltc;
- database password = toor;
- php app/console doctrine:schema:update --force
- php app/console assets:install --symlink --relative
- php app/console assetic:dump
- php app/console cache:clear
-
Due to currently annoying BUG in Docker cron jobs tend to work only if you force them into existing image via touch command. Since its a hack, we'll stick to a classic web server settup methods
- crontab -e and add "* * * * * php /var/www/html/ltc/app/console app:fetch-exchange-rates > /var/www/html/ltc/app/logs/cron.log"
- Head over to https://localhost:8080/ and you should be able to use the application
- Authorisation logfile available at: app/logs/authentications.log