Version: 2.1.1
Platform: x86_64
First, install or update to the latest system software.
sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
# Zero-downtime deployment script for Laravel Forge | |
# | |
# !!! WARNING FOR FIRST DEPLOYMENT !!! | |
# | |
# 1. Proceed with caution! | |
# During first setup this script will backup your .env file and storage folder, then DELETE your existing app directory. | |
# Make sure you don't have any important files inside your app directory and take a backup up beforehand as needed. | |
# | |
# 2. Your web server should now point at /current/public instead of /public | |
# |
<?php | |
$finder = Symfony\Component\Finder\Finder::create() | |
->notPath('bootstrap/*') | |
->notPath('storage/*') | |
->notPath('vendor') | |
->notPath('nova') | |
->notPath('spark') | |
->in([ | |
__DIR__ . '/app', |
apt-get update | |
# Install dependencies | |
apt-get install -y --no-install-recommends \ | |
libtinfo5 libtinfo-dev \ | |
build-essential \ | |
curl \ | |
git \ | |
libglib2.0-dev \ | |
libxml2 \ |
#!/bin/bash | |
# Colors for better readability | |
GREEN='\033[0;32m' | |
YELLOW='\033[0;33m' | |
NC='\033[0m' # No Color | |
# Set starting directory - default is current directory | |
START_DIR="${1:-.}" |