Skip to content

fd6130/simple-deploy

Repository files navigation

Simple Deploy

About

simple-deploy is a very simple deployment script written in Laravel Console.

This tool will assume that your project already setup properly and running without issue in your server.

Requirements

We will assume that you already know how to setup a hosting environment and host your project in server.

  • PHP
  • DigitalOcean or AWS EC2 Linux OS (ex: ubuntu).
  • Some knowledge of Linux terminal command and usage.
  • Some knowledge of hosting a project in server.
  • Git
  • NodeJS
  • nvm (Node Version Manager)
  • PM2

Configuration

Full config:

put_your_project_name_here:
    # (optional) laravel, vue, nuxt
    recipe:
    # your project path
    path:
    # github branch
    branch:
    # for composer (local, prod)
    env:
    # override the command in recipe (if using recipe).
    start_deploy:
    finish_deploy:
    after_finish_deploy:
    # switch to specific node version (ex: 20) using nvm
    nvm_use:
    # pm2 instance name
    pm2_reload:

Put all your project you wish to deploy under project.yaml in this repository root folder.

project1:
    path: ""
    branch: ""
    start_deploy: ""
    finish_deploy: ""

project2:
    path: ""
    branch: ""
    start_deploy: ""
    finish_deploy: ""

Usage

Clone this repository into your server and then execute this command in the repository:

php artisan app:deploy

You may use our recipe for quick start to do some deployment.

Laravel

For php opcache tool, visit https://github.com/gordalina/cachetool

put_your_project_name_here:
    recipe: "laravel"
    path:
    branch:
    env: local
    opcache_tool_path:

Vue

Your vue build files will be copied to '/public_html'.

put_your_project_name_here:
    recipe: "vue"
    path:
    branch:
    nvm_use:

Nuxt

We will assume that your nuxt instance is already setup in PM2.

put_your_project_name_here:
    recipe: "nuxt"
    path:
    branch:
    nvm_use:
    pm2_reload:

About

A very simple deploy script using Laravel Console

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published