One codebase tracked in revision control, many deploys
// ❌ Bad: Multiple repos for same logical app
conference-web/
conference-api/
conference-workers/| import { fileURLToPath } from 'url'; | |
| import { dirname, relative } from 'path'; | |
| // Get current working directory for ES modules | |
| const __filename = fileURLToPath(import.meta.url); | |
| const __dirname = dirname(__filename); | |
| const cwd = process.cwd(); | |
| /** | |
| * Trace the caller of this function and return the relative path and line number. |
Your root directory might look now like:
.
├── data
├── delete-old-backups.sh # <------ Delete backups older than 15 days
├── deploy-and-backup-gatsby.sh # <------ Deploy and backup "old" public directory
├── gatsby-browser.js
apt-getsudo apt-get remove --purge virtualbox sudo rm ~/"VirtualBox VMs" -Rf
sudo rm ~/.config/VirtualBox/ -RfI hereby claim:
To claim this, I am signing this object:
| <?php | |
| use Illuminate\Support\Facades\Schema; | |
| use Illuminate\Database\Schema\Blueprint; | |
| use Illuminate\Database\Migrations\Migration; | |
| class CreateAuthorEntryTable extends Migration | |
| { | |
| /** | |
| * Run the migrations. |
In that installation guide i will carry you through all dependencies of Lumen 5.5 on a system with Ubuntu 17.04. I will also provide known issues, that come along the installation of Lumen.
Type in the commands beneath the required package and check if you have yet installed them. If not, click the link for installation guide.
| #!/bin/bash | |
| echo "Compiling markdown files ..." | |
| regex="(.*)\.md" | |
| list=$(git diff --cached --name-only --diff-filter=ACM) | |
| while read -r line; do | |
| if [[ $line =~ $regex ]]; then | |
| file=${BASH_REMATCH[1]} |
| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Force based label placement</title> | |
| <script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?2.6.0"></script> | |
| <script type="text/javascript" src="http://mbostock.github.com/d3/d3.layout.js?2.6.0"></script> | |
| <script type="text/javascript" src="http://mbostock.github.com/d3/d3.geom.js?2.6.0"></script> | |
| </head> | |
| <body> |