Skip to content

hunterist/capistrano-deploy-laravel-angularjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Centralized Lumen/Laravel + AngularJS Deploy By Capistrano

This repository contains a Capistrano project that builds centralized applications CapHub – multiple applications deployment with Capistrano.

Requirements

I. Local (remote build)

Tool Version Purpose
Capistrano 3.6.1 Deploy backend+frontend source code
NodeJS 4.6.1 Frontend runtime environment
Gulp 3.9.1 Build frontend

II. Backend servers

Tool Version Purpose
PHP 7.0 Server language
PHP7.0-FPM 7.0 FastCGI process manager
Cachetool master On the backend servers, you must install cachetool to /usr/local/bin/ first to make sure symlink correctly.

III. Frontend servers

Tool Version Purpose

Note: If you want to upgrade capistrano to version 3.7.x, please follow at https://github.com/capistrano/capistrano/blob/master/UPGRADING-3.7.md

Getting Started

Rename .env.example to .env in backend & frontend folder.

$ mv backend/.env.example .env
$ mv frontend/.env.example .env

Check backend commands:

cd backend
$ cap -T

Check frontend commands:

cd frontend
$ cap -T

Deploy backend:

$ cd backend
$ terraform hunterist-admin-backend:dev deploy
$ terraform hunterist-admin-backend:staging deploy
$ terraform hunterist-admin-backend:production deploy
$ terraform hunterist-company-backend:dev deploy
$ terraform hunterist-company-backend:staging deploy
$ terraform hunterist-company-backend:production deploy

Deploy frontend:

$ cd frontend
$ terraform hunterist-admin-frontend:dev deploy
$ terraform hunterist-admin-frontend:staging deploy
$ terraform hunterist-admin-frontend:production deploy
$ terraform hunterist-company-frontend:dev deploy
$ terraform hunterist-company-frontend:staging deploy
$ terraform hunterist-company-frontend:production deploy

About

Centralized Lumen/Laravel + AngularJS Deploy By Capistrano

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages