X-Git-Url: https://git.piment-noir.org/?p=Project_proches_de_moi-server.git;a=blobdiff_plain;f=README;fp=README;h=0a3e81ebc88bd2c9add76360fc9be3e58e1c1f81;hp=0000000000000000000000000000000000000000;hb=c4fba949ce8e98cadb9222a202b9e24b52dcb7f8;hpb=787fc3b74e498cb78f516e372827790ba78920ac diff --git a/README b/README new file mode 100644 index 0000000..0a3e81e --- /dev/null +++ b/README @@ -0,0 +1,64 @@ +* Installation: +--------------- + + * Symfony: + +We suppose the Symfony framework is already installed with the composer. + +$ git clone https://git.piment-noir.org/Project_proches_de_moi-server.git /path/to/apache_document_root +$ cd /path/to/apache_document_root +$ composer install +$ cp .env.dist .env +$ vi .env + edit the line + DATABASE_URL=mysql://db_user:db_password@127.0.0.1:3306/db_name + to make it match your database installation +$ php/console bin/console doctrine:database:create + + * Apache: + +Virtual localhost configuration: + + + ServerName domain.tld + + DocumentRoot /path/to/apache_document_root/public + + AllowOverride None + Order Allow,Deny + Allow from All + + + Options -MultiViews + RewriteEngine On + RewriteCond %{REQUEST_FILENAME} !-f + RewriteRule ^(.*)$ index.php [QSA,L] + + + + # uncomment the following lines if you install assets as symlinks + # or run into problems when compiling LESS/Sass/CoffeeScript assets + # + # Options FollowSymlinks + # + + # optionally disable the RewriteEngine for the asset directories + # which will allow apache to simply reply with a 404 when files are + # not found instead of passing the request into the full symfony stack + + + RewriteEngine Off + + + ErrorLog ${APACHE_LOG_DIR}/domain.tld_error.log + CustomLog ${APACHE_LOG_DIR}/domain.tld_access.log combined + + # optionally set the value of the environment variables used in the application + #SetEnv APP_ENV prod + #SetEnv APP_SECRET + #SetEnv DATABASE_URL "mysql://db_user:db_pass@host:3306/db_name" + + + * REST resources: + +Open the tests/curl.txt file for an overview.