host: localhost username: redmine password: my_password encoding: utf8 EOF gem install bundler bundle...install --without development test bundle exec rake generate_secret_token RAILS_ENV=production bundle...exec rake db:migrate #bundle exec rake redmine:load_default_data RAILS_ENV=production REDMINE_LANG=zh...bundle exec rake redmine:load_default_data mkdir -p tmp tmp/pdf public/plugin_assets sudo chown -R...exec rails server webrick -e production 默认用户名与密码 login: admin,password: admin
0.4.10 (x86-mingw32) 略 执行: bundle install --without development test rmagick 这里可能有问题,这个问题是可以忽略的 执行:...bundle exec rake generate_secret_token [ <<<<<<<<<<< 这一步也会出现问题 出错:Failed to load libmysql.dll from...exec rake generate_secret_token 如果还是有问题,启用流氓方法,暴力解决,将高版本的 mysql 目录中的文件复制到低版本mysql2 (0.4.10 x86-mingw32...exec rake db:migrate set RAILS_ENV=production set REDMINE_LANG=en bundle exec rake redmine:load_default_data...8 启动服务测试(保证 MySQL 服务是启动状态) bundle exec rails server webrick -e production C:\Sites\redmine-3.2.9>bundle
:backup:create #使用源码安装的请用 sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production 备份文件会产生在...gitlab:backup:restore BACKUP=1393513186 sudo gitlab-ctl start #源码安装恢复方法 bundle exec rake gitlab:backup...:restore RAILS_ENV=production 在本次实验中你会得到如下提示 [root@localhost gitlab]# bundle exec rake gitlab:backup...install --without development test postgres --deployment sudo -u git -H bundle exec rake db:migrate...第二请使用这个命令 sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production 大多问题系统本身都会帮你查找出来。
session加密处理: 创建随机key对session加密,防止被篡改 $ bundle exec rake generate_secret_token 初始化数据库字段: $ RAILS_ENV...=production bundle exec rake db:migrate 冲突解决(首先确保数据库字符集为utf8mb4): # 冲突1:key太长 Mysql2::Error: Specified...数据初始化: $ RAILS_ENV=production bundle exec rake redmine:load_default_data ## 该过程会以交互形式让用户选择语言环境变量,也可以在执行该命令时直接指定环境变量...,如下: $ RAILS_ENV=production REDMINE_LANG=zh bundle exec rake redmine:load_default_data 文件系统授权: 运行Redmine...); 更新数据库 bundle exec rake redmine:plugins NAME=redmine_agile RAILS_ENV=production ; 冲突: 如果出现“找不到“.bundle
api.rubygems.org/specs.4.8.gz) 可以参考 https://www.cnblogs.com/smallbottle/p/4000825.html 执行下面的命令安装 Redmine 的所有依赖项 bundle...install --without development test 创建 Session 密钥 bundle exec rake generate_secret_token 生成一个随机密钥,Rails...创建数据库表结构 set RAILS_ENV=production bundle exec rake db:migrate 将在 MySQL 数据库创建 Redmine 的相关表机构 设置数据库默认数据集...默认情况下是汉语的;所以不需要进行语言切换;如果需切换 set RAILS_ENV=production set REDMINE_LANG=zh bundle exec rake redmine:load_default_data...启动 Redmine bundle exec rails server webrick -e production 5.
,请参考 script 中的内容,然后选择你不希望当前安装的软件。...exec rake db:create bundle exec rake db:migrateRAILS_ENV=test bundle exec rake db:create db:migrate如果在运行的时候出现错误...,请仓库: Discourse 开发环境安装运行 bundle exec rake db:create 错误 中的内容。...尝试运行下面的命令:bundle exec rake autospec你的项目应该会通过所有的测试。这个测试非常耗时,可以不做这个的,要不然估计几个小时就出去了。...创建一个新的 Admin 账号在对开发环境进行登录之前,需要创建一个管理员账号,运行下面的命令进行创建:RAILS_ENV=development bundle exec rake admin:create
/usr/local/rvm/gems/ruby-2.2.0) => (default) global # cd /data/website/redmine-3.0.0 【安装依赖包】 # bundle... install --without development test # useradd -s /sbin/nologin -M -c "redmine" redmine # chown -R redmine... generate_secret_token # RAILS_ENV=production rake db:migrate # RAILS_ENV=production rake redmine:load_default_data... exec rake generate_secret_token # bundle exec rake db:migrate RAILS_ENV=production 若有插件: # bundle exec... rake redmine:plugins:migrate RAILS_ENV=production # bundle exec rake tmp:cache:clear tmp:sessions:clear
1 2 3 4 5 6 7 8 9 13:28 $ rake generate rake aborted!...Prepending `bundle exec` to your command may solve this....信息 1 2 3 4 5 13:48 $ gem list rake *** LOCAL GEMS *** rake (10.1.1, 0.9.6, 0.9.2.2) 方法一 在所有的 rake...命令前面加入 bundle exec 前缀。...1 bundle exec rake generate 方法二 修改Gemfile 文件如下。
... postgres") sudo -u git -H bundle install --deployment --without development test postgres aws Install...exec rake gitlab:shell:install[v1.9.6] REDIS_URL=redis://localhost:6379 RAILS_ENV=production # By default...exec rake gitlab:setup RAILS_ENV=production # Type 'yes' to create the database tables. # When done...exec rake gitlab:setup RAILS_ENV=production GITLAB_ROOT_PASSWORD=newpassword 安装初始化脚本 下载初始化脚本(将放在/etc...exec rake gitlab:env:info RAILS_ENV=production 编译静态文件 sudo -u git -H bundle exec rake assets:precompile
... mysql") sudo -u git -H bundle install --deployment --without development test mysql aws kerberos...# Or if you use MySQL (note, the option says "without ... postgres") sudo -u git -H bundle install ... exec rake gitlab:shell:install[v2.6.6] REDIS_URL=unix:/var/run/redis/redis.sock RAILS_ENV=production... exec rake gitlab:setup RAILS_ENV=production # Type 'yes' to create the database tables...# When done you see 'Administrator account created:' 设置高级密码 sudo -u git -H bundle exec rake gitlab
JS 依赖 yarn install 当到这一步为止,你已经安装好所有需要的 gems 和依赖,请尝试运行下面的命令: bundle exec rake db:create bundle exec...rake db:migrate RAILS_ENV=test bundle exec rake db:create db:migrate 如果在运行的时候出现错误,请仓库: Discourse 开发环境安装运行...bundle exec rake db:create 错误 中的内容。...尝试运行下面的命令: bundle exec rake autospec 你的项目应该会通过所有的测试。 这个测试非常耗时,可以不做这个的,要不然估计几个小时就出去了。...创建一个新的 Admin 账号 在对开发环境进行登录之前,需要创建一个管理员账号,运行下面的命令进行创建: RAILS_ENV=development bundle exec rake admin:create
You have already activated rake 0.9.2.2, but your Gemfile requires rake 0.9.2....U sing bundle exec may solve this....(See full trace by running task with --trace) 解决: bundle exec rake 用上面的语句替代 rake 执行命令 第二个: * * Invoke...exec rake preview Starting to watch source with Jekyll and Compass....解决: 这个就很郁闷了,categories 分类不能有中文的,现在嘛还无解 常用的编译提交命令 bundle exec rake generate && bundle exec rake deploy
Compiled Assets(编译) sudo RAILS_ENV=production bundle exec rake canvas:compile_assets 5....Database migrations(数据库迁移) sudo RAILS_ENV=production bundle exec rake db:migrate:predeploy sudo RAILS_ENV...=production bundle exec rake db:migrate db migrate某个rb出错,移出去了,跑一遍,报错,再放回去,跑,通过了。。...Notification types(更新通知) sudo RAILS_ENV=production bundle exec rake db:load_notifications 7....意外发现 更新后发现所有的icon图标都出问题了,编译也正常,删除/var/canvas/public/dist目录,重新执行编译: sudo RAILS_ENV=production bundle exec
config/database.yml emacs config/database.yml 在redmine目录中,安装Ruby依赖项: sudo gem install bundler sudo bundle...install --without development test 安装完成后,您需要使用Rake启动服务器: bundle exec rake generate_secret_token RAILS_ENV...=production bundle exec rake db:migrate RAILS_ENV=production bundle exec rake redmine:load_default_data...apt install git 移动到目录redmine/plugins并克隆插件: cd plugins git clone https://github.com/scrum2b/scrum2b 使用Bundle...安装插件,然后重启NGINX: bundle install sudo systemctl restart nginx 在浏览器中导航到Redmine。
# PostgreSQL 环境 sudo -u git -H bundle install --deployment --without development test mysql aws kerberos...# MySQL 环境 sudo -u git -H bundle install --deployment --without development test postgres aws kerberos...exec rake gitlab:shell:install[v2.6.6] REDIS_URL=unix:/var/run/redis/redis.sock RAILS_ENV=production...sudo -u git -H bundle exec rake gitlab:setup RAILS_ENV=production GITLAB_ROOT_PASSWORD=yourpassword 安全设置...exec rake gitlab:env:info RAILS_ENV=production 生成资源(Assets): sudo -u git -H bundle exec rake assets:
No pg_config… 问题重现: 在bundle的时候出现gem包pg-0.18.4安装出错的情况,错误代码如下: $ bundle . . ....--without-pg_config --with-pg-dir --without-pg-dir --with-pg-include --without-pg-include=${pg-dir...解决方案: 找到 pg_hba.conf文件, 一般是在/var/lib/pgsql/data目录下,如果修改后不生效看看/var/lib/pgsql目录下是否还有其他的数据目录。因系统环境而异。...db:migrate时出现错误,错误代码如下: $ rake db:migrate . . . rake aborted!...如果依然报错,请执行rake db:drop,然后再创建一次数据库就行了。
Prepending `bundle exec` to your command may solve this....在容器镜像文件中我们有定义 bundle install --no-cache,所以这里错误提示后的建议的内容是不准确的,推测这里的问题是缺失 rake 依赖包,在镜像文件中添加命令,对其进行安装。...这里不指定版本的原因上面已经说过。 再次尝试启动镜像,一切顺利。 但是优化升级,还没有结束,我们继续战斗。...不过个人不推荐使用非治本的方式解决问题,如果没有从本质解决问题,那么应该让问题继续暴露出来,提醒维护者后面处理掉它,而不是进行选择性遗忘。...- su lobsters -c "bundle install"; \ + su lobsters -c "bundle install --without=development,test"; \
Prepending `bundle exec` to your command may solve this....在容器镜像文件中我们有定义 bundle install--no-cache,所以这里错误提示后的建议的内容是不准确的,推测这里的问题是缺失 rake 依赖包,在镜像文件中添加命令,对其进行安装。...这里不指定版本的原因上面已经说过。 再次尝试启动镜像,一切顺利。 但是优化升级,还没有结束,我们继续战斗。...不过个人不推荐使用非治本的方式解决问题,如果没有从本质解决问题,那么应该让问题继续暴露出来,提醒维护者后面处理掉它,而不是进行选择性遗忘。...- su lobsters -c "bundle install"; \ + su lobsters -c "bundle install --without=development,test";
.com git:(master) bundle exec rake install ## Copying classic theme into ....Prepending `bundle exec` to your command may solve this....www.bihe0832.com git:(master) ✗ bundle exec rake preview Starting to watch source with Jekyll and...www.bihe0832.com git:(master) ✗ bundle exec rake generate ## Generating Site with Jekyll write...exec rake generate && tcb login && tcb hosting:deploy .
/ ======================================================= 七、安装gem组件 gem install rails gem install rake...install #可能会被墙,如出现错误按提示进行修复 ===================================================== 十一、初始化redmine bundle...exec rake generate_secret_token RAILS_ENV=production bundle exec rake db:migrate RAILS_ENV=production...bundle exec rake redmine:load_default_data #初始化数据选择zh =============================================...exec rails server -p80 webrick -e production -d -b 0.0.0.0 #使用所有IP地址的80端口提供服务 =====================
领取专属 10元无门槛券
手把手带您无忧上云