Thanks to visit codestin.com
Credit goes to github.com

Skip to content

stdev-corp/stdev

Repository files navigation

STDev Homepage

CI CD

This is a Next.js project bootstrapped with create-next-app.

How to run for development

.env.example 파일을 참고하여 .env 파일을 작성합니다.

npm install
npm run dev

브라우저에서 http://localhost:3000로 이동합니다.

How to deploy

Github 레포지토리 설정에서 Actions secrets and variables 페이지로 이동한 후 Repository secrets에 아래 값을 입력합니다.

  • NEXT_PUBLIC_CHANNEL_PLUGIN_KEY=example
  • NEXT_PUBLIC_GTM_ID=GTM-example
  • NEXT_PUBLIC_GA_ID=G-example

서버에서 Docker Compose 환경을 설정한 후, docker-compose.yml 을 아래와 같이 작성합니다.

services:
  stdev:
    container_name: stdev
    image: ghcr.io/stdev-kr/stdev:main
    pull_policy: always
    expose:
      - 1000
    restart: always
    environment:
      DATABASE_URL: postgres://user:password@url:port/schema
      PAYLOAD_SECRET: example
      AWS_ACCESS_KEY: example
      AWS_SECRET_KEY: example
      SMTP_HOST: smtp.example.com
      SMTP_USER: example
      SMTP_PASS: example

아래 명령을 실행합니다.

docker compose up -d

Port 1000 번에 Reverse Proxy를 붙입니다.

About

Homepage of STDev Nonprofit Corporation

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •