mirror of
https://github.com/lucasrcsantana/story-generator.git
synced 2025-12-16 13:27:52 +00:00
feat: Mudando nome do app de Histórias Mágicas para Leiturama
This commit is contained in:
parent
546690fbc8
commit
a975e2486b
@ -18,7 +18,7 @@ jobs:
|
|||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v4
|
uses: docker/metadata-action@v4
|
||||||
with:
|
with:
|
||||||
images: seu-registry.com/historias-magicas
|
images: seu-registry.com/leiturama
|
||||||
tags: |
|
tags: |
|
||||||
type=ref,event=branch
|
type=ref,event=branch
|
||||||
type=ref,event=pr
|
type=ref,event=pr
|
||||||
@ -43,8 +43,8 @@ jobs:
|
|||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
cache-from: type=registry,ref=seu-registry.com/historias-magicas:buildcache
|
cache-from: type=registry,ref=seu-registry.com/leiturama:buildcache
|
||||||
cache-to: type=registry,ref=seu-registry.com/historias-magicas:buildcache,mode=max
|
cache-to: type=registry,ref=seu-registry.com/leiturama:buildcache,mode=max
|
||||||
|
|
||||||
- name: Update Portainer stack
|
- name: Update Portainer stack
|
||||||
if: github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/main'
|
||||||
@ -55,4 +55,4 @@ jobs:
|
|||||||
key: ${{ secrets.DEPLOY_KEY }}
|
key: ${{ secrets.DEPLOY_KEY }}
|
||||||
script: |
|
script: |
|
||||||
cd /opt/portainer
|
cd /opt/portainer
|
||||||
docker stack deploy -c portainer-stack.yml historias-magicas
|
docker stack deploy -c portainer-stack.yml leiturama
|
||||||
@ -1,8 +1,8 @@
|
|||||||
version: '3.8'
|
version: '3.8'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
historias-magicas:
|
leiturama:
|
||||||
image: ${REGISTRY}/historias-magicas:${TAG}
|
image: ${REGISTRY}/leiturama:${TAG}
|
||||||
environment:
|
environment:
|
||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
- NEXT_PUBLIC_SUPABASE_URL=${NEXT_PUBLIC_SUPABASE_URL}
|
- NEXT_PUBLIC_SUPABASE_URL=${NEXT_PUBLIC_SUPABASE_URL}
|
||||||
@ -14,10 +14,10 @@ services:
|
|||||||
deploy:
|
deploy:
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.historias-magicas.rule=Host(`${DOMAIN}`)"
|
- "traefik.http.routers.leiturama.rule=Host(`${DOMAIN}`)"
|
||||||
- "traefik.http.routers.historias-magicas.entrypoints=websecure"
|
- "traefik.http.routers.leiturama.entrypoints=websecure"
|
||||||
- "traefik.http.routers.historias-magicas.tls.certresolver=letsencrypt"
|
- "traefik.http.routers.leiturama.tls.certresolver=letsencrypt"
|
||||||
- "traefik.http.services.historias-magicas.loadbalancer.server.port=3000"
|
- "traefik.http.services.leiturama.loadbalancer.server.port=3000"
|
||||||
- "traefik.docker.network=traefik-public"
|
- "traefik.docker.network=traefik-public"
|
||||||
replicas: 1
|
replicas: 1
|
||||||
update_config:
|
update_config:
|
||||||
|
|||||||
@ -10,8 +10,8 @@
|
|||||||
"typecheck": "tsc --noEmit",
|
"typecheck": "tsc --noEmit",
|
||||||
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
||||||
"format": "prettier --write \"src/**/*.{ts,tsx}\"",
|
"format": "prettier --write \"src/**/*.{ts,tsx}\"",
|
||||||
"docker:build": "docker build -t historias-magicas .",
|
"docker:build": "docker build -t leiturama .",
|
||||||
"docker:run": "docker run -p 3000:3000 historias-magicas",
|
"docker:run": "docker run -p 3000:3000 leiturama",
|
||||||
"deploy:prod": "docker-compose up -d --build"
|
"deploy:prod": "docker-compose up -d --build"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
version: '3.8'
|
version: '3.8'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
historias-magicas:
|
leiturama:
|
||||||
image: ${REGISTRY}/historias-magicas:${TAG}
|
image: ${REGISTRY}/leiturama:${TAG}
|
||||||
environment:
|
environment:
|
||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
- NEXT_PUBLIC_SUPABASE_URL=${NEXT_PUBLIC_SUPABASE_URL}
|
- NEXT_PUBLIC_SUPABASE_URL=${NEXT_PUBLIC_SUPABASE_URL}
|
||||||
@ -15,10 +15,10 @@ services:
|
|||||||
deploy:
|
deploy:
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.historias-magicas.rule=Host(`${DOMAIN}`)"
|
- "traefik.http.routers.leiturama.rule=Host(`${DOMAIN}`)"
|
||||||
- "traefik.http.routers.historias-magicas.entrypoints=websecure"
|
- "traefik.http.routers.leiturama.entrypoints=websecure"
|
||||||
- "traefik.http.routers.historias-magicas.tls.certresolver=letsencrypt"
|
- "traefik.http.routers.leiturama.tls.certresolver=letsencrypt"
|
||||||
- "traefik.http.services.historias-magicas.loadbalancer.server.port=3000"
|
- "traefik.http.services.leiturama.loadbalancer.server.port=3000"
|
||||||
- "traefik.docker.network=traefik-public"
|
- "traefik.docker.network=traefik-public"
|
||||||
replicas: 2
|
replicas: 2
|
||||||
update_config:
|
update_config:
|
||||||
|
|||||||
@ -488,10 +488,10 @@ const footerLinks = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
const socialLinks = [
|
const socialLinks = [
|
||||||
{ icon: Facebook, href: "https://facebook.com/historias-magicas" },
|
{ icon: Facebook, href: "https://facebook.com/leiturama.ai" },
|
||||||
{ icon: Instagram, href: "https://instagram.com/historias-magicas" },
|
{ icon: Instagram, href: "https://instagram.com/leiturama.ai" },
|
||||||
{ icon: Twitter, href: "https://twitter.com/historias-magicas" },
|
{ icon: Twitter, href: "https://twitter.com/leiturama.ai" },
|
||||||
{ icon: Youtube, href: "https://youtube.com/historias-magicas" }
|
{ icon: Youtube, href: "https://youtube.com/leiturama.ai" }
|
||||||
];
|
];
|
||||||
|
|
||||||
const paymentMethods = [
|
const paymentMethods = [
|
||||||
|
|||||||
@ -20,7 +20,7 @@ export async function sendStudentCredentialsEmail({
|
|||||||
try {
|
try {
|
||||||
// Email para o aluno
|
// Email para o aluno
|
||||||
await resend.emails.send({
|
await resend.emails.send({
|
||||||
from: 'Leiturama <noreply@historias-magicas.com.br>',
|
from: 'Leiturama <noreply@leiturama.ai>',
|
||||||
to: studentEmail,
|
to: studentEmail,
|
||||||
subject: 'Bem-vindo ao Leiturama!',
|
subject: 'Bem-vindo ao Leiturama!',
|
||||||
html: `
|
html: `
|
||||||
@ -47,7 +47,7 @@ export async function sendStudentCredentialsEmail({
|
|||||||
|
|
||||||
// Email para o responsável
|
// Email para o responsável
|
||||||
await resend.emails.send({
|
await resend.emails.send({
|
||||||
from: 'Leiturama <noreply@historias-magicas.com.br>',
|
from: 'Leiturama <noreply@leiturama.ai>',
|
||||||
to: guardianEmail,
|
to: guardianEmail,
|
||||||
subject: `Conta do ${studentName} criada no Leiturama`,
|
subject: `Conta do ${studentName} criada no Leiturama`,
|
||||||
html: `
|
html: `
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user