OS - Ubuntu 16日期-2017年6月11日
我正试图在本地计算机上安装Canvas LMS。
遵循"https://github.com/instructure/canvas-lms/wiki/Production-Start"这个链接
第一步-数据库安装和配置
所以,我使用了下面的命令
a. sudo apt-获取更新b. sudo apt-获取安装postgresql postgresql-cont肋骨
Postgres
a. sudo -u postgres createuser画布-no- createdb \-非超级用户-no-createrole- -u提示(我设置密码'portal') b. sudo -u postgres createdb canvas_production --owner=canvas第二步-获取代码
第三步-依赖关系安装
第四步-红宝石
Yarn安装
a. curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg https://dl.yarnpkg.com/debian/pubkey.gpg sudo sudo apt-key add - b. echo "deb https://dl.yarnpkg.com/debian/稳定的主线“\ sudo tee /etc/ sudo .list.d/yarn.list c. sudo apt-获取更新&sudo apt-获得安装-允许-降级纱线=0.27.5-1(因为我使用Ubuntu 16) d. sudo apt-获得安装python e.步骤五-画布默认配置
已经改变了-
--# do not create a queue: section for your test environment
--test:
-- adapter: postgresql
-- encoding: utf8
-- database: canvas_test
-- host: localhost
-- username: canvas
-- timeout: 5000
--
--development:
-- adapter: postgresql
-- encoding: utf8
-- database: canvas_development
-- timeout: 5000
--production:
-- adapter: postgresql
-- encoding: utf8
-- database: canvas_production
-- host: localhost
-- username: canvas
-- password: portal
-- timeout: 5000到这个
--# do not create a queue: section for your test environment
--test:
-- adapter: postgresql
-- encoding: utf8
-- database: canvas_test
-- host: localhost
-- username: canvas
-- timeout: 5000
--development:
-- adapter: postgresql
-- encoding: utf8
-- database: canvas_production
-- host: localhost
-- username: canvas
-- password: portal
-- timeout: 5000
--production:
-- adapter: postgresql
-- encoding: utf8
-- database: canvas_production
-- host: localhost
-- username: canvas
-- password: portal
-- timeout: 5000第六步-生成资产
1.
a. cd /var/canvas
b. mkdir -p log tmp/pids public/assets app/stylesheets/brandable_css_brands
c. touch app/stylesheets/_brandable_variables_defaults_autogenerated.scss
d. touch Gemfile.lock
e. sudo chown -R anup config/environment.rb log tmp public/assets \
app/stylesheets/_brandable_variables_defaults_autogenerated.scss \
app/stylesheets/brandable_css_brands Gemfile.lock config.ru
f. yarn install
g. RAILS_ENV=production bundle exec rake canvas:compile_assets错误加密密钥太短,请参阅security.yml.example,所以我更改了sequrity.yml.example。
从这里-
--production:
-- # replace this with a random string of at least 20 characters
-- encryption_key: 12345
--development:
-- encryption_key: facdd3a131ddd8988b14f6e4e01039c93cfa0160
-- previous_encryption_keys:
-- - 0610afc39c93010e4e6f41b8898ddd131a3ddcaf
--test:
-- encryption_key: facdd3a131ddd8988b14f6e4e01039c93cfa0160为了这个-
--production:
-- # replace this with a random string of at least 20 characters
-- encryption_key: facdd3a131ddd8988b14f6e4e01039c93cfa0160
--development:
-- encryption_key: facdd3a131ddd8988b14f6e4e01039c93cfa0160
-- previous_encryption_keys:
-- - 0610afc39c93010e4e6f41b8898ddd131a3ddcaf
--test:
-- encryption_key: facdd3a131ddd8988b14f6e4e01039c93cfa0160问题没有解决--不管我在那里放什么,都会犯同样的错误
h. sudo chown -R anup public/dist/brandable_css
Getting this error - 无法访问'public/dist/brandable_css':没有这样的文件或目录
我被困在这里了,请帮帮忙
谢谢!
发布于 2017-11-19 18:11:15
对这个问题的快速回答,基于冗长的一系列评论。
文件security.yml需要编辑,而不是security.yml.example。
https://stackoverflow.com/questions/47349606
复制相似问题