Code Monkey home page Code Monkey logo

grs_django_channels's Introduction

(GRS 프로젝트 - LCD화면 웹)

AWS ec2 django-channels 배포

EC2 setting

  1. ec2 인스턴스 시작 (ubuntu 18.04)

  2. t2.micro 프리티어 선택

  3. 새 보안 그룹 ssh 내ip, 규칙 추가 (사용자 지정TCP, 포트번호 8000,내ip)

  4. 시작 및 키페어 저장

  5. 고정 ip 할당

  6. putty 이용해서 접속 => ubuntu 입력

  7. sudo vi /etc/default/locale

    LC_CTYPE="en_US.UTF-8"
    LC_ALL="en_US.UTF-8"
    LANG="en_US.UTF-8"
    
    1. sudo apt-get update
    2. sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev
  8. pyenv 설치

    1. curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash

    2. vi ~/.bashrc

    3. 파일 맨 아래에 내용 추가

      export PATH="~/.pyenv/bin:$PATH"
      eval "$(pyenv init -)"
      eval "$(pyenv virtualenv-init -)"
      
  9. git 설치

    sudo apt-get install libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev

  10. srv 폴더 유저 변경

    sudo chown -R ubuntu:ubuntu /srv/

  11. 프로젝트 clonepyenv 설정

    1. git clone 레포지토리.git
    2. cd 파일명
    3. pyenv install 3.7.0 장고실행시 파이썬 버전 설치
    4. pyenv virtualenv 3.7.0 가상환경명
    5. pyenv local 가상환경명
    6. pip install -r requriements.txt
  12. redis-server 설치 및 실행

    sudo apt-get install redis-server

    docker run -p 6379:6379 -d redis:5

    python manage.py runserver 0:8000

grs_django_channels's People

Contributors

baejinsoo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.