Skip to content

skullee84/project-study

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Study~


requirement

  • nginx

  • tomcat

  • node.js

  • java 1.8


hosts

sudo vi /etc/hosts

127.0.0.1 local-www.study.com


nginx 설정

nginx compile해서 설치하셔도되고, 아니면

brew update

brew install nginx

brew로 설치했을 경우 아래 디렉토리에 위치한다.

/usr/local/etc/nginx/nginx.conf

아래 {project_folder}를 본인의 디렉토리로 변경.

nginx.conf

worker_processes  1;

events {
    worker_connections  1024;
}

http {
  include       mime.types;
  default_type  application/octet-stream;

  sendfile    on;
  tcp_nopush  on;

  keepalive_timeout  10;

  upstream backend {
    server 127.0.0.1:8080;
  }

  server {
    listen       80;
    server_name  local-www.study.com;

    charset utf-8;

    location / {
        root  {project_folder}/to-be-frontend/dist;
        index  index.html index.htm;
    }

    location /api {
        proxy_pass http://backend;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
  }
}

frontend build

{project_folder}/to-do-frontend 디렉토리에서

npm install

npm run build

npm start

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published