This action will force synchronization from work-design/work.design, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
work.design
安装前系统必需$ git clone https://gitee.com/work-design/work.design.git
Gem
包$ bundle install
pg gem
如果您系统中没有安装 postgresql
这个数据库,安装 pg gem
时会有错误,提示找不到对应的库文件,根据您的操作系统安装 postgresql
即可。下面是 macOS 的安装方法。其它系统请自行搜索相关方法安装。
$ brew install postgresql #安装
$ brew services start postgresql #运行 postgresql
$yarn install
turbo.git
error https://github.com/qinmingyuan/turbo.git: Extracting tar content of undefined failed, the file appears to be corrupt: "Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?"
yarn.lock
还是用的原来的github 库,可能被墙。新的 package.json
改成 gitee
,但还未更新 yarn.lock
yarn.lock
,重新 yarn install
即可。$ cp config/credentials/development.yml.enc.example config/credentials/development.yml.enc
$ cp config/database.yml.example config/database.yml
bin/rails db:create
bin/rails db:schema:load
postgis
sql:/Users/xulin/work_design_dev/work.design/db/structure.sql:16: ERROR: could not open extension control file "/usr/local/share/postgresql/extension/postgis.control": No such file or directory
postgis
brew install postgis
xxx already exits
psql:/Users/xulin/work_design_dev/work.design/db/structure.sql:895: ERROR: relation "ar_internal_metadata" already exists
数据库已经存在相关结构。
schema.rb
,再重新构建数据库。rails db:drop create
$ bin/webpack-dev-server
merge is not a function
[webpack-cli] Failed to load '/Users/xulin/work_design_dev/work.design/config/webpack/development.js' config [webpack-cli] TypeError: merge is not a function at Object. (/Users/xulin/work_design_dev/work.design/config/webpack/base.js:15:18)
webpacker
安装版本不对,没有按照 package.json
中指定版本安装。node_modules/@rails/webpacker
文件夹。$ npm install @rails/webpacker@6.0.0-beta.6
$ bin/rails server
redis
服务$ brew services start redis
进入 localhost:3000
,看到网站的界面,说明安装成功。
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。