This file contains 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
let gulp = require('gulp'), | |
sass = require('gulp-sass'), | |
header = require('gulp-header'), | |
cleanCSS = require('gulp-clean-css'), | |
rename = require("gulp-rename"), | |
uglify = require('gulp-uglify'), | |
watch = require('gulp-watch'), | |
browserSync = require('browser-sync').create(); | |
This file contains 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
{ | |
"private": true, | |
"scripts": { | |
"dev": "npm run development", | |
"development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", | |
"watch": "npm run development -- --watch", | |
"watch-poll": "npm run watch -- --watch-poll", | |
"hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js", | |
"prod": "npm run production", | |
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js" |
This file contains 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
STEP 1: php artisn make:auth | |
STEP 2: composer require laravel/passport | |
STEP 3: php artisan migrate | |
STEP 4: php artisan passport:install | |
STEP 5: use HasApiTokens Trait in User Model. |
This file contains 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
- Install ubuntu. | |
- Shrink Hard drive on windows. | |
- Install the ubuntu from bootable media. | |
- After installation run sudo apt-get update && sudo apt-get upgrade | |
- Replace 'esc' with 'Caps Lock' | |
- sudo apt-get install dconf-tools | |
- Run the dconf-tools | |
- navigate to org >> gnome >> desktop >> input-sources |
This file contains 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
# What is docker? | |
Docker is a is a containarization system in which we run an app in a container which is created by docker images. | |
# How to install docker? | |
- sudo apt-get install docker.io | |
- sudo systemctl start docker | |
- sudo systemctl enable docker | |
- docker --version | |
This file contains 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
version: '3' | |
services: | |
# The Application | |
app: | |
container_name: "app_container" | |
build: | |
context: ./ | |
dockerfile: docker/app.dockerfile | |
working_dir: /var/www |
This file contains 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
FROM nginx:1.10 | |
ADD vhost.conf /etc/nginx/conf.d/default.conf |
This file contains 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
FROM php:7.1-fpm | |
RUN printf "deb http://archive.debian.org/debian/ jessie main\ndeb-src http://archive.debian.org/debian/ jessie main\ndeb http://security.debian.org jessie/updates main\ndeb-src http://security.debian.org jessie/updates main" > /etc/apt/sources.list | |
RUN apt-get update && apt-get upgrade && apt-get install -y libmcrypt-dev \ | |
&& docker-php-ext-install mcrypt pdo_mysql | |
This file contains 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
server { | |
listen 80; | |
index index.php index.html; | |
root /var/www/public; | |
location / { | |
try_files $uri /index.php?$args; | |
} | |
location ~ \.php$ { |
This file contains 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
- Installing Task runner | |
- sudo wget -O /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-linux-amd64 | |
- sudo chmod +x /usr/local/bin/gitlab-runner | |
- curl -sSL https://get.docker.com/ | sh | |
- sudo useradd --comment 'GitLab Runner' --create-home gitlab-runner --shell /bin/bash | |
- sudo gitlab-runner install --user=gitlab-runner --working-directory=/home/gitlab-runner | |
- sudo gitlab-runner start | |
- sudo gitlab-runner stop |
OlderNewer