- Create droplet with Ubuntu 18.10
- ssh root@[DROPLET IP ADDRESS]
- Get password from your email
- Change password on first login
- adduser laravel
- Enter password and other information
  
    
      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
    
  
  
    
  | <?php | |
| namespace App\Models; | |
| class Application extends Model | |
| { | |
| /** | |
| * The attributes that should be mutated to dates. | |
| * | |
| * @var array | 
  
    
      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
    
  
  
    
  | <?php | |
| // Usage: | |
| // Before | |
| @if ($errors->has('email')) | |
| <span>{{ $errors->first('email') }}</span> | |
| @endif | |
| // After: | 
  
    
      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
    
  
  
    
  | [client] | |
| # TCP/IP port number to use for connection | |
| port = 3306 | |
| [mysql] | |
| # This option is on by default, which enables database, table, and column name completion. | |
| no_auto_rehash | |
| # The maximum size of the buffer for client/server communication. The default is 16MB, the maximum is 1GB. | |
| max_allowed_packet = 16M | |
| # Set the prompt to the specified format | 
  
    
      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
    
  
  
    
  | # Change to the project directory | |
| cd /home/forge/domain.com | |
| # Turn on maintenance mode | |
| php artisan down | |
| # Pull the latest changes from the git repository | |
| git pull origin master | |
| # Install/update composer dependecies | 
  
    
      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
    
  
  
    
  | @props([ | |
| 'percentage' => 0, | |
| 'failed' => false | |
| ]) | |
| @php | |
| $done = $failed || $percentage == 100; | |
| @endphp | |
| <div {{ $attributes->merge(['class' => ' space-y-1'])->whereDoesntStartWith('wire:poll') }} | 
  
    
      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
    
  
  
    
  | #!/usr/bin/env bash | |
| # | |
| # Nginx - new server block | |
| # http://rosehosting.com | |
| read -p "Enter username : " username | |
| read -p "Enter domain name : " domain | |
| # Functions | |
| ok() { echo -e '\e[32m'$domain'\e[m'; } # Green | |
| die() { echo -e '\e[1;31m'$domain'\e[m'; exit 1; } | 
  
    
      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
    
  
  
    
  | # appserver | |
| server { | |
| listen 80; | |
| server_name zftemplate.desktop; | |
| access_log /var/log/nginx/zftemplate.desktop.access.log; | |
| error_log /var/log/nginx/zftemplate.desktop.error.log; | |
| root /home/user/WorkspacePHP/zftemplate/public; | |
| rewrite ^/([0-9]*)/css/(.*) /css/$2; | |
| rewrite ^/([0-9]*)/js/(.*) /js/$2; | 
  
    
      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 | |
| ### BEGIN INIT INFO | |
| # Provides: supervisord | |
| # Required-Start: $remote_fs | |
| # Required-Stop: $remote_fs | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: Example initscript | |
| # Description: This file should be used to construct scripts to be | |
| # placed in /etc/init.d. | 
OlderNewer