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