- PHP version > 7.0
- PhpStorm, ValentinaDB
- Linux
- Nginx, Apache
sudo psql postgrescreateuser "classified-admin"psql postgres -U "classified-admin"CREATE ROLE "classified-admin" WITH LOGIN PASSWORD 'itea1234';CREATE DATABASE classified_db;GRANT ALL PRIVILEGES ON DATABASE classified_db to "classified-admin";\list\q
sudo -u postgres psql postgres# CREATE USER "classified-admin" WITH PASSWORD 'itea1234';# CREATE DATABASE classified_db WITH OWNER "classified-admin";# GRANT ALL PRIVILEGES ON DATABASE classified_db to "classified-admin";# \quitsudo systemctl restart postgresql
git initgit remote add origin git@gitlab.com:itea-classified/classified.gitgit pull origin develop
composer install
Create directory configs in the root directory of your project. Then create file config.ini in this directory.
File input (for example):
[database]
dbms = pgsql
db_host = localhost
db_username = classified-admin
db_password = itea1234
db_name = classified_db
php vendor/bin/phoenix initphp vendor/bin/phoenix migrate --dir=tablesto add tables to DBphp vendor/bin/phoenix migrate --dir=test_datato add test data to tablesphp vendor/bin/phoenix rollback --dir=tablesto delete last migration from tablesphp vendor/bin/phoenix rollback --dir=test_datato delete last migration from test_dataphp vendor/bin/phoenix rollback --allto delete all information
Configure the virtual host along the path: /app/client-side/web