==
Create your laravel project and open its folder
composer create-project laravel/laravel yourappname
cd yourappname
config.vm.define 'nome_do_host' do |node| | |
node.vm.hostname = "nome_do_host" | |
## USE A LINHA A SEGUIR SE QUISER | |
## USAR O IP DE UMA REDE PRIVADA | |
node.vm.network :private_network, ip: "192.168.56.1" | |
## OU USE A LINHA A SEGUIR SE QUISER | |
## USAR A MÁQUINA NA MESMA REDE | |
## EM MODO BRIDGE |
# Prepare required directories for Newrelic installation | |
RUN mkdir -p /var/log/newrelic /var/run/newrelic && \ | |
touch /var/log/newrelic/php_agent.log /var/log/newrelic/newrelic-daemon.log && \ | |
chmod -R g+ws /tmp /var/log/newrelic/ /var/run/newrelic/ && \ | |
chown -R 1001:0 /tmp /var/log/newrelic/ /var/run/newrelic/ && \ | |
# Download and install Newrelic binary | |
export NEWRELIC_VERSION=$(curl -sS https://download.newrelic.com/php_agent/release/ | sed -n 's/.*>\(.*linux-musl\).tar.gz<.*/\1/p') && \ | |
cd /tmp && curl -sS "https://download.newrelic.com/php_agent/release/${NEWRELIC_VERSION}.tar.gz" | gzip -dc | tar xf - && \ | |
cd "${NEWRELIC_VERSION}" && \ |
version: "3" | |
services: | |
web: | |
image: emilevauge/whoami | |
networks: | |
- default | |
- traefik-net | |
deploy: | |
labels: | |
- "traefik.port=80" |
<!doctype html> | |
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<!-- CSRF Token --> | |
<meta name="csrf-token" content="{{ csrf_token() }}"> | |
<title>{{ config('app.name', 'Laravel') }}</title> |
# How to install browser-kit-testing (laravel 6.x project) | |
## Create a project with composer | |
``` | |
composer create-project laravel/laravel <project_name> | |
``` | |
## Install symfony/css-selector (dependency) |
window.addEventListener('load', function() { | |
document.querySelectorAll('.btn-group .btn') | |
.forEach(item => { | |
item.addEventListener('click', function(e) { | |
e.target.parentNode.childNodes.forEach(function(node) { | |
if (node.firstChild !== null) { | |
node.firstChild.removeAttribute('checked') | |
} | |
if (node.classList !== undefined) { | |
node.classList.remove('active') |
pipeline { | |
// run on jenkins nodes tha has java 8 label | |
agent { label 'java8' } | |
// global env variables | |
environment { | |
EMAIL_RECIPIENTS = 'mahmoud.romeh@test.com' | |
} | |
stages { | |
stage('Build with unit testing') { |
git fetch --all | |
git reset --hard origin/master | |
git pull origin master |
master: | |
image: rancher/server | |
container_name: master | |
volumes_from: | |
- mysql | |
ports: | |
- "8080:8080" | |
links: | |
- mysql | |
environment: |