Railsアプリも開発しようとしているUbuntuベースのマシンに、omnibusパッケージを使用してgitlabをインストールしました。gitlab は独自に ruby と rails フレームワークをインストールするので、それを使用して新しい rails アプリケーションを作成することはできますか? ホーム ディレクトリで実行するとgitlab-rails new app_name
、次のようなエラー メッセージが表示されます。
/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 プロジェクト ディレクトリの下に新しいアプリを作成しようとしていると思いますか?