Skip to content

Installation

PawelPodkalicki edited this page Sep 20, 2018 · 2 revisions

Installation

  1. Make sure you're using PHP (+mongodb module) 7.1 or higher and have composer installed
  2. Clone repository: git clone https://github.com/adshares/ads-operator.git
  3. Create a configuration file .env based on .env.dist in the root of the application
  4. Create Behat configuration file behat.yml based on behat.yml.dist in the root of the application
  5. Install all dependencies using composer: composer install
  6. Add 127.0.0.1 ads-operator.ads entry to your hosts
Nginx
  • We assume that you've installed ADS Operator project in /ads-operator directory.

ads-operator.conf:

server {
	listen 80;

	server_name ads-operator.ads;
	root /ads-operator/public;

	index index.htm index.html index.php;

	location ~ /\.  {
		return 403;
	}

	location / {
		# try to serve file directly, fallback to rewrite
		try_files $uri $uri/ /index.php?$query_string;
	}

	location ~ \.php$ {
		include snippets/fastcgi-php.conf;
		fastcgi_pass unix:/run/php/php7.2-fpm.sock;
	}

	location = /favicon.ico  {
		log_not_found off;		
	}
}
`
Clone this wiki locally
You can’t perform that action at this time.