Skip to content

Instantly share code, notes, and snippets.

View ahmed-bhs's full-sized avatar
👽

Ahmed EBEN HASSINE 脳の流れ ahmed-bhs

👽
View GitHub Profile
@ahmed-bhs
ahmed-bhs / auto-deploying.md
Created November 1, 2018 17:32 — forked from nickbclifford/auto-deploying.md
How to automatically deploy code to a server using Travis CI

Auto-Deploying via Travis CI

Because Travis CI can automatically execute scripts after successfully (or unsuccessfully!) executing tests, it is an obvious choice for a deployment tool. In order to deploy to a Git repository on a remote server, the process generally is as follows:

  • Set up SSH keys
  • Add the server's copy of the repository as a Git remote
  • Push to the remote
  • SSH into the server and execute any installation/compilation/miscellaneous commands

Before even touching .travis.yml...

Users

@ahmed-bhs
ahmed-bhs / .travis.yml
Created November 1, 2018 12:57 — forked from n0ni0/.travis.yml
Travis-CI file for PHP/Symfony 3
# Project language
language: php
# Allows use container-based infrastructure
sudo: false
# Start mysql service
services:
- mysql
I dont know why this json query does not return the hole aggregations:
```
{
"query": {
"match": {
"title": {
"query": "test11",
"fuzziness": 0

Using fos_elastica.finder.post_index.post service to get list of sugesstion available from my mapping:


fos_elastica:
    clients:
        default: { host: elasticsearch, port: 9200 }
    indexes:
        post_index:
            client: default
"autoload": {
"psr-4": {
"App\\": "src/",
"Portal\\Common\\Infrastructure\\Symfony\\": "portal/src/Symfony/"
}
},
<?php
Portal\Common\Infrastructure\Symfony\PortalBundle::class => ['all' => true],
<?php
namespace Portal\Common\Infrastructure\Symfony\DependencyInjection;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Extension\Extension;
class AppContextExtension extends Extension
{
public function load(array $configs, ContainerBuilder $container)