php-sample

POST INSTALL

Install docker

sudo sh scripts/install-docker-ubuntu.sh
sh scripts/install-docker-alpine.sh

INSTALL

Use Makefile:

sudo make production

or

sudo docker-compose up -d

And then point your browser to http://localhost.

You can then scale the server to multiple instances:

sudo docker-compose up -d --scale=server=3

FOR DEV LINUX OR MACOS ONLY

INSTALL

Install node environment::

make nvm Close your terminal et re-open this nvm install v14.16.1 nvm use v14.16.1 make install

Docker start:

sudo make dev docker ps -a

Get container name prefix: yoonest-sample_*

ex:

docker exec -it yoonest-sample_server_1 bash

Enjoy use composer in bash

RELEASE

make svn

MIGRATE DATABASE


DATABASE

BACKUP

sudo scripts/mariadb_backup.sh

RESTORE

sudo scripts/mariadb_restore.sh