Skip to content

Instantly share code, notes, and snippets.

@dwhoop55
dwhoop55 / ! README.md
Last active June 18, 2024 15:59
Deploy versioned Laravel application from git for integration in CI/CD

Laravel zero-downtime deployment

Use this for a directory structure like this:

project-root/

  • [file] deploy.sh
  • staging
    • [dir] storage
    • [file] .env
    • [dir] repos
  • [dir] 12ab34hg67
// More information: https://danielupshaw.com/openscad-rounded-corners/
module roundedcube_simple(size = [1, 1, 1], center = false, radius = 0.5) {
// If single value, convert to [x, y, z] vector
size = (size[0] == undef) ? [size, size, size] : size;
translate = (center == false) ?
[radius, radius, radius] :
[
radius - (size[0] / 2),
@jloveland
jloveland / rename-tag
Created October 5, 2014 02:48
rename a git tag
#!/bin/bash
echo "enter new tag: "
read new
echo "enter old tag: "
read old
echo "new tag: " $new
echo "old tag: " $old