Skip to content

Commit afec799

Browse files
authored
Merge pull request #1 from wayofdev/feat/initial
2 parents d55a708 + 2cffffb commit afec799

File tree

12 files changed

+44
-145
lines changed

12 files changed

+44
-145
lines changed

.env.example

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,11 @@ LOG_LEVEL=debug
3333

3434
DB_CONNECTION=pgsql
3535
DB_HOST=127.0.0.1
36-
DB_PORT=3306
36+
DB_PORT=5432
3737
DB_DATABASE=wod
3838
DB_USERNAME=wod
3939
DB_PASSWORD=password
40+
DB_FORWARD_PORT=5433
4041

4142
CACHE_DRIVER=file
4243
FILESYSTEM_DISK=local
@@ -79,17 +80,17 @@ SENTRY_TRACES_SAMPLE_RATE=1.0
7980
# Create slack app and add incoming webhook urls
8081
# https://api.slack.com/messaging/webhooks
8182
DEPLOYER_STAGING_SLACK_WEBHOOK=https://hooks.slack.com/services/XXXXXXX/XXXXX/XXXXXX
82-
DEPLOYER_STAGING_REMOTE_USER=staging-xxxxx
83-
DEPLOYER_STAGING_HOST=staging.laravel-starter-tpl.wayof.dev
83+
DEPLOYER_STAGING_REMOTE_USER=staging-pbb2p
84+
DEPLOYER_STAGING_HOST=staging.laravel-cycle-starter-tpl.wayof.dev
8485
DEPLOYER_STAGING_BRANCH=develop
8586

8687
DEPLOYER_PROD_SLACK_WEBHOOK=https://hooks.slack.com/services/XXXXXXX/XXXXX/XXXXXX
87-
DEPLOYER_PROD_REMOTE_USER=prod-xxxxx
88-
DEPLOYER_PROD_HOST=prod.laravel-starter-tpl.wayof.dev
88+
DEPLOYER_PROD_REMOTE_USER=prod-btkvj
89+
DEPLOYER_PROD_HOST=prod.laravel-cycle-starter-tpl.wayof.dev
8990
DEPLOYER_PROD_BRANCH=master
9091

9192
# https://wayofdev.sentry.io/settings/account/api/auth-tokens/
9293
DEPLOYER_SENTRY_TOKEN=50b88fxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
9394
DEPLOYER_SENTRY_ORG=wayofdev
94-
DEPLOYER_SENTRY_PROJECT=laravel-starter-tpl
95+
DEPLOYER_SENTRY_PROJECT=laravel-cycle-starter-tpl
9596
DEPLOYER_SENTRY_SERVER=https://wayofdev.sentry.io

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
APP_NAME: laravel
6262
SHARED_SERVICES_NAMESPACE: ss
6363
PROJECT_SERVICES_NAMESPACE: wod
64-
COMPOSE_PROJECT_NAME: laravel-starter-tpl
64+
COMPOSE_PROJECT_NAME: laravel-cycle-starter-tpl
6565

6666
- name: 🔑 Generate secret application key
6767
run: php artisan key:generate

.github/workflows/deploy-release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
php: ["8.1"]
1818
environment:
1919
name: production
20-
url: https://prod.laravel-starter-tpl.wayof.dev
20+
url: https://prod.laravel-cycle-starter-tpl.wayof.dev
2121

2222
steps:
2323
- name: 📦 Check out the codebase
@@ -54,11 +54,11 @@ jobs:
5454
env:
5555
DEPLOYER_STAGING_SLACK_WEBHOOK: ${{ secrets.DEPLOYER_STAGING_SLACK_WEBHOOK }}
5656
DEPLOYER_STAGING_REMOTE_USER: ${{ secrets.DEPLOYER_STAGING_REMOTE_USER }}
57-
DEPLOYER_STAGING_HOST: "staging.laravel-starter-tpl.wayof.dev"
57+
DEPLOYER_STAGING_HOST: "staging.laravel-cycle-starter-tpl.wayof.dev"
5858
DEPLOYER_STAGING_BRANCH: "develop"
5959
DEPLOYER_PROD_SLACK_WEBHOOK: ${{ secrets.DEPLOYER_PROD_SLACK_WEBHOOK }}
6060
DEPLOYER_PROD_REMOTE_USER: ${{ secrets.DEPLOYER_PROD_REMOTE_USER }}
61-
DEPLOYER_PROD_HOST: "prod.laravel-starter-tpl.wayof.dev"
61+
DEPLOYER_PROD_HOST: "prod.laravel-cycle-starter-tpl.wayof.dev"
6262
DEPLOYER_PROD_BRANCH: "master"
6363

6464
- name: 📦 Create sentry release

.github/workflows/deploy-staging.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
php: ["8.1"]
1818
environment:
1919
name: staging
20-
url: https://staging.laravel-starter-tpl.wayof.dev
20+
url: https://staging.laravel-cycle-starter-tpl.wayof.dev
2121

2222
steps:
2323
- name: 📦 Check out the codebase
@@ -54,11 +54,11 @@ jobs:
5454
env:
5555
DEPLOYER_STAGING_SLACK_WEBHOOK: ${{ secrets.DEPLOYER_STAGING_SLACK_WEBHOOK }}
5656
DEPLOYER_STAGING_REMOTE_USER: ${{ secrets.DEPLOYER_STAGING_REMOTE_USER }}
57-
DEPLOYER_STAGING_HOST: "staging.laravel-starter-tpl.wayof.dev"
57+
DEPLOYER_STAGING_HOST: "staging.laravel-cycle-starter-tpl.wayof.dev"
5858
DEPLOYER_STAGING_BRANCH: "develop"
5959
DEPLOYER_PROD_SLACK_WEBHOOK: ${{ secrets.DEPLOYER_PROD_SLACK_WEBHOOK }}
6060
DEPLOYER_PROD_REMOTE_USER: ${{ secrets.DEPLOYER_PROD_REMOTE_USER }}
61-
DEPLOYER_PROD_HOST: "prod.laravel-starter-tpl.wayof.dev"
61+
DEPLOYER_PROD_HOST: "prod.laravel-cycle-starter-tpl.wayof.dev"
6262
DEPLOYER_PROD_BRANCH: "master"
6363

6464
...

.github/workflows/sync-from-tpl.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
uses: AndreasAugustin/[email protected]
2424
with:
2525
github_token: ${{ secrets.WORKFLOW_TOKEN }}
26-
source_repo_path: wayofdev/laravel-starter-tpl
26+
source_repo_path: wayofdev/laravel-cycle-starter-tpl
2727
upstream_branch: master
2828
pr_labels: 'type: maintenance'
2929

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ repos:
1010
- id: fix-encoding-pragma
1111

1212
- repo: https://github.com/commitizen-tools/commitizen
13-
rev: 3.2.1
13+
rev: 3.2.2
1414
hooks:
1515
- id: commitizen
1616
stages:

CHANGELOG.md

Lines changed: 0 additions & 103 deletions
This file was deleted.

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ BUILDER_PARAMS ?= docker run --rm -i \
2424
--env COMPOSER_AUTH="$(COMPOSER_AUTH)"
2525

2626
BUILDER ?= $(BUILDER_PARAMS) $(SUPPORT_IMAGE)
27-
BUILDER_WIRED ?= $(BUILDER_PARAMS) --network $(COMPOSE_PROJECT_NAME)_default $(SUPPORT_IMAGE)
27+
BUILDER_WIRED ?= $(BUILDER_PARAMS) --network project.$(COMPOSE_PROJECT_NAME) $(SUPPORT_IMAGE)
2828

2929
# Shorthand wait4x command, executed through build-deps
3030
WAITER ?= $(BUILDER_WIRED) wait4x
@@ -63,7 +63,7 @@ else
6363
WHITE := ""
6464
RST := ""
6565
endif
66-
MAKE_LOGFILE = /tmp/laravel-starter-tpl.log
66+
MAKE_LOGFILE = /tmp/laravel-cycle-starter-tpl.log
6767
MAKE_CMD_COLOR := $(BLUE)
6868

6969
default: all
@@ -78,7 +78,7 @@ help: ## Show this menu
7878
@echo
7979
@echo ' 📑 Logs are stored in $(MAKE_LOGFILE)'
8080
@echo
81-
@echo ' 📦 Package laravel-starter-tpl (github.com/wayofdev/laravel-starter-tpl)'
81+
@echo ' 📦 Package laravel-cycle-starter-tpl (github.com/wayofdev/laravel-cycle-starter-tpl)'
8282
@echo ' 🤠 Author Andrij Orlenko (github.com/lotyp)'
8383
@echo ' 🏢 ${YELLOW}Org wayofdev (github.com/wayofdev)${RST}'
8484
.PHONY: help
@@ -88,7 +88,7 @@ help: ## Show this menu
8888
# Default action
8989
# Defines default command when `make` is executed without additional parameters
9090
# ------------------------------------------------------------------------------------
91-
all: hooks key prepare up
91+
all: hooks install key prepare up
9292
.PHONY: all
9393

9494

README.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
<br>
22

33
<div align="center">
4-
<img width="456" src="https://raw.githubusercontent.com/wayofdev/laravel-starter-tpl/master/assets/logo.gh-light-mode-only.png#gh-light-mode-only">
5-
<img width="456" src="https://raw.githubusercontent.com/wayofdev/laravel-starter-tpl/master/assets/logo.gh-dark-mode-only.png#gh-dark-mode-only">
4+
<img width="456" src="https://raw.githubusercontent.com/wayofdev/laravel-cycle-starter-tpl/master/assets/logo.gh-light-mode-only.png#gh-light-mode-only">
5+
<img width="456" src="https://raw.githubusercontent.com/wayofdev/laravel-cycle-starter-tpl/master/assets/logo.gh-dark-mode-only.png#gh-dark-mode-only">
66
</div>
77

88
<br>
99

1010
<br>
1111

1212
<div align="center">
13-
<a href="https://actions-badge.atrox.dev/wayofdev/laravel-starter-tpl/goto"><img alt="Build Status" src="https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fwayofdev%2Fnext-starter-tpl%2Fbadge&style=flat-square"/></a>
14-
<a href="https://github.com/wayofdev/laravel-starter-tpl/tags"><img alt="GitHub package.json version" src="https://img.shields.io/github/package-json/v/wayofdev/laravel-starter-tpl?style=flat-square"></a>
15-
<a href="LICENSE.md"><img src="https://img.shields.io/github/license/wayofdev/laravel-starter-tpl.svg?style=flat-square&color=blue" alt="Software License"/></a>
16-
<a href="#"><img alt="Commits since latest release" src="https://img.shields.io/github/commits-since/wayofdev/laravel-starter-tpl/latest?style=flat-square"></a>
17-
<a href="https://app.codecov.io/gh/wayofdev/laravel-starter-tpl">
18-
<img alt="Codecov" src="https://img.shields.io/codecov/c/gh/wayofdev/laravel-starter-tpl?style=flat-square"></a>
13+
<a href="https://actions-badge.atrox.dev/wayofdev/laravel-cycle-starter-tpl/goto"><img alt="Build Status" src="https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fwayofdev%2Flaravel-cycle-starter-tpl%2Fbadge&style=flat-square"/></a>
14+
<a href="https://github.com/wayofdev/laravel-cycle-starter-tpl/tags"><img alt="GitHub package.json version" src="https://img.shields.io/github/package-json/v/wayofdev/laravel-cycle-starter-tpl?style=flat-square"></a>
15+
<a href="LICENSE.md"><img src="https://img.shields.io/github/license/wayofdev/laravel-cycle-starter-tpl.svg?style=flat-square&color=blue" alt="Software License"/></a>
16+
<a href="#"><img alt="Commits since latest release" src="https://img.shields.io/github/commits-since/wayofdev/laravel-cycle-starter-tpl/latest?style=flat-square"></a>
17+
<a href="https://app.codecov.io/gh/wayofdev/laravel-cycle-starter-tpl">
18+
<img alt="Codecov" src="https://img.shields.io/codecov/c/gh/wayofdev/laravel-cycle-starter-tpl?style=flat-square"></a>
1919
</div>
2020

2121
<br>
@@ -86,10 +86,10 @@ To use this repository, you need to meet the following requirements:
8686
8787
1. **Clone** repository:
8888

89-
After forking or creating generating repository from template, you can clone it to your local machine. In this example we will use `laravel-starter-tpl` repository as starting point.
89+
After forking or creating generating repository from template, you can clone it to your local machine. In this example we will use `laravel-cycle-starter-tpl` repository as starting point.
9090

9191
```bash
92-
$ git clone [email protected]:wayofdev/laravel-starter-tpl.git
92+
$ git clone [email protected]:wayofdev/laravel-cycle-starter-tpl.git
9393
```
9494

9595
2. **Generate** `.env` file
@@ -101,7 +101,7 @@ To use this repository, you need to meet the following requirements:
101101
APP_NAME=laravel \
102102
SHARED_SERVICES_NAMESPACE=ss \
103103
PROJECT_SERVICES_NAMESPACE=wod \
104-
COMPOSE_PROJECT_NAME=laravel-starter-tpl
104+
COMPOSE_PROJECT_NAME=laravel-cycle-starter-tpl
105105
```
106106

107107
**Change** generated `.env` file to match your needs, if needed.
@@ -113,7 +113,7 @@ To use this repository, you need to meet the following requirements:
113113
APP_NAME=laravel \
114114
SHARED_SERVICES_NAMESPACE=ss \
115115
PROJECT_SERVICES_NAMESPACE=wod \
116-
COMPOSE_PROJECT_NAME=laravel-starter-tpl \
116+
COMPOSE_PROJECT_NAME=laravel-cycle-starter-tpl \
117117
FORCE=true
118118
```
119119

@@ -122,8 +122,9 @@ To use this repository, you need to meet the following requirements:
122122
```bash
123123
$ make
124124

125-
# or run commands separatley
125+
# or run commands separately
126126
$ make hooks
127+
$ make install
127128
$ make key
128129
$ make prepare
129130
$ make up
@@ -133,7 +134,7 @@ To use this repository, you need to meet the following requirements:
133134

134135
## 🤝 License
135136

136-
[![Licence](https://img.shields.io/github/license/wayofdev/laravel-starter-tpl?style=for-the-badge&color=blue)](./LICENSE)
137+
[![Licence](https://img.shields.io/github/license/wayofdev/laravel-cycle-starter-tpl?style=for-the-badge&color=blue)](./LICENSE)
137138

138139
<br>
139140

app/deploy.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
require 'recipe/laravel.php';
88
require 'contrib/slack.php';
99

10-
set('application', 'laravel-starter-tpl');
11-
set('repository', '[email protected]:wayofdev/laravel-starter-tpl.git');
10+
set('application', 'laravel-cycle-starter-tpl');
11+
set('repository', '[email protected]:wayofdev/laravel-cycle-starter-tpl.git');
1212
set('base_deploy_path', '/home/ploi');
1313

1414
set('composer_options', '--verbose --no-progress --no-interaction --optimize-autoloader');
@@ -26,18 +26,18 @@ function getDefaultEnv(mixed $variable, mixed $default = null)
2626

2727
host('staging')
2828
->set('branch', getDefaultEnv('DEPLOYER_STAGING_BRANCH', 'develop'))
29-
->set('remote_user', getDefaultEnv('DEPLOYER_STAGING_REMOTE_USER', 'staging-crhev'))
29+
->set('remote_user', getDefaultEnv('DEPLOYER_STAGING_REMOTE_USER', 'staging-pbb2p'))
3030
->set('base_deploy_path', '/home/{{ remote_user }}')
31-
->set('hostname', getDefaultEnv('DEPLOYER_STAGING_HOST', 'staging.laravel-starter-tpl.wayof.dev'))
31+
->set('hostname', getDefaultEnv('DEPLOYER_STAGING_HOST', 'staging.laravel-cycle-starter-tpl.wayof.dev'))
3232
->set('deploy_path', '{{ base_deploy_path }}/{{ hostname}}')
3333
->set('slack_webhook', getDefaultEnv('DEPLOYER_STAGING_SLACK_WEBHOOK'))
3434
->set('sub_directory', 'app');
3535

3636
host('prod')
3737
->set('branch', getDefaultEnv('DEPLOYER_PROD_BRANCH', 'master'))
38-
->set('remote_user', getDefaultEnv('DEPLOYER_PROD_REMOTE_USER', 'prod-ibce8'))
38+
->set('remote_user', getDefaultEnv('DEPLOYER_PROD_REMOTE_USER', 'prod-btkvj'))
3939
->set('base_deploy_path', '/home/{{ remote_user }}')
40-
->set('hostname', getDefaultEnv('DEPLOYER_PROD_HOST', 'prod.laravel-starter-tpl.wayof.dev'))
40+
->set('hostname', getDefaultEnv('DEPLOYER_PROD_HOST', 'prod.laravel-cycle-starter-tpl.wayof.dev'))
4141
->set('deploy_path', '{{ base_deploy_path }}/{{ hostname }}')
4242
->set('slack_webhook', getDefaultEnv('DEPLOYER_PROD_SLACK_WEBHOOK'))
4343
->set('sub_directory', 'app');

0 commit comments

Comments
 (0)