This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!bin/sh | |
composer install --no-dev --optimize-autoloader | |
yarn install --prod | |
yarn run build | |
php bin/console cache:clear --env=prod --no-debug |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MAIL_TOKEN="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" | |
EMAIL_NAME="[email protected]" | |
MONGO_INSTANCE="mongodb://dev.hitotec:[email protected]:23946/hitotec_dating_app" | |
PORT=3000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Flush iptables. | |
iptables -F | |
iptables -X | |
# /!\ ne pas rejeter une connexion existante entrante | |
iptables -A INPUT -m conntrack --ctstate ESTABLISHED -j ACCEPT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## COMPOSER ALIAS | |
alias cii="composer install --ignore-platform-reqs" | |
alias cui="composer update --ignore-platform-reqs" | |
## SYMFONY ALIAS | |
# Console | |
alias sf="php bin/console" | |
alias sfdev="php bin/console --env=dev" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {Injectable} from '@angular/core' | |
import {Response, Headers, Http, RequestOptions} from '@angular/http'; | |
import { Observable } from 'rxjs/Rx'; | |
import 'rxjs/add/operator/catch'; | |
import 'rxjs/add/operator/map'; | |
import {SessionStorageService} from 'ngx-webstorage'; | |
import {ApiUrls, server, STORAGE} from '../parameters'; | |
@Injectable() | |
export class HttpService { |