설치 지침

Ubuntu에 캔버스 설치 18.04 LTS

컬을 설치하십시오

컬을 설치하려면 다음 명령을 실행하십시오.

sudo apt-get install curl 

git을 설치하십시오

git을 설치하려면 아래 명령을 실행하십시오.

sudo apt-get install git 

루비를 설치하십시오

아래 명령을 Runnig를 통해 Node.js, 원사 저장소 및 키를 시스템에 추가하십시오.

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list

패키지를 업데이트하고 다음 명령으로 코어 패키지를 설치하십시오.

sudo apt-get update
sudo apt-get install nodejs zlib1g-dev build-essential libpq-dev libssl-dev redis-server libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev zlib1g-dev libxml2-dev libsqlite3-dev libpq-dev libxmlsec1-dev make g++ libxslt1-dev libcurl4-openssl-dev libffi-dev 

RBENV를 사용하여 로컬 프로필 설정으로 Ruby를 설치하십시오.

cd ~/
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL

git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
exec $SHELL 

이제 루비를 설치하려면 다음 명령을 실행하십시오.

rbenv install 2.5.3
rbenv global 2.5.3

Bundler를 설치하려면 아래 명령을 실행하십시오.

gem install bundler -v 1.13.6
rbenv rehash

PostgreSQL을 설치하십시오

postresql 데이터베이스 서버를 설치하려면 Commnad를 실행하십시오.

sudo apt-get install postgresql

아래 명령을 실행하여 canvas라는 데이터베이스 사용자를 만듭니다.

sudo -u postgres createuser canvas --no-createdb --no-superuser --no-createrole --pwprompt 

다음 명령을 실행하여 “CanvasDB"라는 새 데이터베이스를 작성하고 캔버스 소유자를 만드십시오.

sudo -u postgres createdb canvas_production --owner=canvas

PostresQL 설치로 완료되면 System 사용자 이름을 Postgres SuperUser로 설정하십시오.

sudo -u postgres createuser $USER
sudo -u postgres psql -c "alter user $USER with superuser" postgres

원사를 설치하십시오

그런 다음 아래의 명령을 설치 레일을 실행하고 Node.js 리포지토리를 추가하고 Node.js 패키지를 설치하십시오.

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt-get update && sudo apt-get install yarn=1.10.1-1

다음 명령으로 RubyGems를 업데이트하십시오.

gem update --system

캔버스 LMS 설치

홈 디렉토리 및 복제 캔버스 저장소로 이동하십시오.

cd ~/
git clone https://github.com/instructure/canvas-lms.git

디렉토리 및 체크 아웃 안정 지점을 변경하십시오.

cd canvas-lms
git checkout stable

아래 명령을 실행하여 캔버스 환경을 구성하십시오.

for config in amazon_s3 database delayed_jobs domain file_store outgoing_mail security external_migration; do cp config/$config.yml.example config/$config.yml; done

캔버스 동적 설정 파일 및 데이터베이스 구성 파일을 만듭니다.

cp config/dynamic_settings.yml.example config/dynamic_settings.yml
cp config/database.yml.example config/database.yml

파일 config/database.yml을 열고 캔버스 데이터베이스 자격 증명을 설정합니다.

sudo nano config/database.yml

프로덕션 구성 라인을 편집하고 파일을 저장하십시오.

production:
   adapter: postgresql
   encoding: utf8
   database: canvasdb
   host: localhost
   username: canvas
   password: passwore_here
   timeout: 5000

이 명령을 실행하여 모든 캔버스 종속성을 다운로드하십시오.

bundle install
yarn install --pure-lockfile && yarn install --pure-lockfile
sudo npm install -g coffee-script@1.6.2

마지막으로 아래 명령을 실행하여 캔버스를 설정하십시오.

bundle exec rails db:initial_setup
bundle exec rails canvas:compile_assets
bundle exec rails server

이제 캔버스에 액세스하려면 브라우저를 열고 http : // localhost : 3000을 입력하십시오.

 한국인