Skip to content

Instantly share code, notes, and snippets.

View midhunmonachan's full-sized avatar
🎯
Focusing

Midhun Monachan midhunmonachan

🎯
Focusing
  • Ontario, Canada
  • 09:15 (UTC -04:00)
View GitHub Profile
@midhunmonachan
midhunmonachan / provision.php
Created May 22, 2024 04:35
This script customizes the Deployer tool for provisioning a Debian 12 server with Nginx and optional SSL setup via Certbot
/**
* This file contains an override for the Deployer provision script to run provision on a Debian 12 server.
* Instead of using the default Caddy server, this code configures the Nginx server.
* Additionally, it also sets up SSL using Certbot.
*
* Read more about Deployer here: https://github.com/deployphp/deployer
*
* @author Midhun Monachan <mail@midhun.ca>
*
*
@midhunmonachan
midhunmonachan / DevCommand.php
Created May 13, 2024 14:53
A custom laravel artisan command to run the development server using the app url set in the env file.
<?php
/**
* DevCommand.php
*
* A custom artisan command to run the development server using the app url set in the env file.
*
* This file contains the DevCommand class, which is a custom Laravel Artisan command used to simplify the process of
* running a development server. It provides functionalities to check server preconditions, start the server, handle
* permissions, and gracefully stop the server. This command is particularly useful during the development phase of a