Skip to content

Instantly share code, notes, and snippets.

View josephmancuso's full-sized avatar
💭
Paying my dues to the dirt

Joseph Mancuso josephmancuso

💭
Paying my dues to the dirt
View GitHub Profile
@josephmancuso
josephmancuso / nginx.conf
Last active January 10, 2019 22:58
Masonite Nginx
## /etc/nginx/nginx.conf
user root;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 768;
# multi_accept on;
@josephmancuso
josephmancuso / config.yml
Last active August 9, 2021 17:16
Python script to execute cicle CI jobs
version: 2
jobs:
build:
docker:
- image: circleci/python:3.6 # primary container for the build job
steps:
- checkout
- run: make
- run: make ci
python3.4:
@josephmancuso
josephmancuso / README.md
Last active April 21, 2020 06:28
Deploy a Masonite application through a GitHub action

Instructions

This is a gist containing several files needed to get Masonite automatically deploying to your servers via GitHub pushes (or releases)

NOTE: This script will have a downtime of a few seconds between deployments. If your application requires no downtime you can see this GIST here for a bit more complex GIST for getting to zero downtime deployments through the use of uWSGI, unix sockets and managed config files

Requirements

  • NGINX installed (may or may not be fully configured)
  • Python 3 installed and everything needed to run a Masonite application (see Masonite documentation for requirements)
@josephmancuso
josephmancuso / 1. Zero Downtime Deployment.md
Last active September 22, 2023 14:51
This GIST is for getting zero downtime deployments with your Python applications

Instructions

This is a gist containing several files needed to get Masonite automatically deploying to your servers via GitHub pushes (or releases)

This GIST uses unix sockets and uWSGI in order to get zero downtime deployment.

Requirements

  • NGINX installed (may or may not be fully configured)
  • Python 3 installed and everything needed to run a Masonite application (see Masonite documentation for requirements)
@josephmancuso
josephmancuso / HelloWorld.vue
Last active April 8, 2020 12:11
Masonite Inertia Adapter
<template>
<div>
Hello World
</div>
</template>
<script>
export default {
name: "HelloWorld",
}