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
Host :ec2-50-19-219-69.compute-1.amazonaws.com | |
Database : dbktmep10ovfnu | |
User :ecvuhdsbxencgx | |
Port :5432 | |
Password :03ca39670fb83f24c8bdcdc81089dbe50f70bb1148892a4ccbdb3994716e9325 | |
URI | |
postgres://ecvuhdsbxencgx:03ca39670fb83f24c8bdcdc81089dbe50f70bb1148892a4ccbdb3994716e9325@ec2-50-19-219-69.compute-1.amazonaws.com:5432/dbktmep10ovfnuHeroku CLI | |
heroku pg:psql postgresql-round-66066 --app achmadfatoni |
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
#Steps to install latest Laravel, LEMP on AWS Ubuntu 14.4 version. | |
This tutorial is the improvised verision of this [tutorial on Digitalocean](https://www.digitalocean.com/community/tutorials/how-to-install-laravel-with-an-nginx-web-server-on-ubuntu-14-04) based on my experience. | |
## Install PHP 7 on Ubuntu | |
Run the following commands in sequence. | |
``` | |
sudo apt-get install -y language-pack-en-base | |
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php | |
sudo apt-get update | |
sudo apt-get install zip unzip |
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
docker ps -a | grep Exit | cut -d ' ' -f 1 | xargs sudo docker rm |
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
[program:queue] | |
commad=php artisan queue:listen --tries=2 | |
directory=/path/to-directory | |
stdout_logfile=/path/to-log-file/storage/logs/supervisord.log | |
redirect_stderr=true |
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
cat ~/.ssh/id_rsa.pub | ssh root@[your.ip.address.here] "cat >> ~/.ssh/authorized_keys" |
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
<template> | |
<div class="modal-mask" v-show="show" @click="close" transition="modal"> | |
<div class="modal-container" @click.stop> | |
<slot></slot> | |
</div> | |
</div> | |
</template> | |
<style> | |
* { | |
box-sizing: border-box; |
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
@extends('app') | |
@section('content') | |
<div class="container"> | |
<div class="row"> | |
<div class="col-md-4 col-md-offset-4"> | |
<div class="panel panel-default"> | |
<div class="panel-heading">Todo List</div> | |
<div class="panel-body"> | |
<form role="form" method="POST" action="{{ url('/todos/' . $todo->id) }}"> | |
{{ csrf_field() }} |
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
@extends('app') | |
@section('content') | |
<div class="container"> | |
<div class="row"> | |
<div class="col-md-8 col-md-offset-2"> | |
<div class="panel panel-default"> | |
<div class="panel-heading">Todo List</div> | |
<div class="panel-body"> | |
<a href="{{ url('todos/create') }}" class="btn btn-primary">Add todo</a> |
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
@extends('app') | |
@section('content') | |
<div class="container"> | |
<div class="row"> | |
<div class="col-md-4 col-md-offset-4"> | |
<div class="panel panel-default"> | |
<div class="panel-heading">Todo List</div> | |
<div class="panel-body"> | |
<form role="form" method="POST" action="{{ url('/todos') }}"> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Laravel</title> | |
<!-- Fonts --> |