2016-11-06 116 views
0

我已经在基于Ubuntu的机器上安装了带有omnibus软件包的gitlab,我也试图开发rails应用程序。由于gitlab为自己安装ruby和rails框架,我可以使用它来创建新的rails应用程序吗?当我我的主目录下运行gitlab-rails new app_name我收到一条错误信息:我可以使用gitlab-rails来创建一个新的rails应用程序吗?

/usr/bin/gitlab-rails error: could not load /opt/gitlab/etc/gitlab-rails/gitlab-rails-rc 
Either you are not allowed to read the file, or it does not exist yet. 
You can generate it with: sudo gitlab-ctl reconfigure 

当我运行sudo gitlab-rails new app_name,我得到:

Can't initialize a new Rails application within the director of another, please change to a non-Rails directory first. 
Type 'rails' for help 

我一直在努力,在新创建的空运行此目录,但不断收到相同的信息。我认为gitlab-rails会尝试在gitlab项目目录下创建新的应用程序?

+0

我不认为这是有道理的。 – sevenseacat

回答

1

据我所知,这不是gitlab-rails命令的目的,也不是支持的功能。通过仅使用Rails gem本身来创建新的Rails应用程序会更好。