公式ドキュメント通りに作っていったのですが、
docker-compose run web rails new . --force --no-deps --database=postgresql
を入力しても
ローカルディレクトリにappフォルダが生成されません。
docker-compose run web ls
でコンテナ内にあるのか調べたのですが、生成されていませんでした。
考えられる原因はなんでしょうか?
公式ドキュメント
https://docs.docker.com/compose/rails/
追記
console
1Starting aaaa_db_1 ... done 2 exist 3 create README.md 4 create Rakefile 5 create config.ru 6 create .gitignore 7 force Gemfile 8 run git init from "." 9Initialized empty Git repository in /railbook/.git/ 10 create app 11 create app/assets/config/manifest.js 12 create app/assets/javascripts/application.js 13 create app/assets/javascripts/cable.js 14 create app/assets/stylesheets/application.css 15 create app/channels/application_cable/channel.rb 16 create app/channels/application_cable/connection.rb 17 create app/controllers/application_controller.rb 18 create app/helpers/application_helper.rb 19 create app/jobs/application_job.rb 20 create app/mailers/application_mailer.rb 21 create app/models/application_record.rb 22 create app/views/layouts/application.html.erb 23 create app/views/layouts/mailer.html.erb 24 create app/views/layouts/mailer.text.erb 25 create app/assets/images/.keep 26 create app/assets/javascripts/channels 27 create app/assets/javascripts/channels/.keep 28 create app/controllers/concerns/.keep 29 create app/models/concerns/.keep 30 create bin 31 create bin/bundle 32 create bin/rails 33 create bin/rake 34 create bin/setup 35 create bin/update 36 create bin/yarn 37 create config 38 create config/routes.rb 39 create config/application.rb 40 create config/environment.rb 41 create config/secrets.yml 42 create config/cable.yml 43 create config/puma.rb 44 create config/spring.rb 45 create config/environments 46 create config/environments/development.rb 47 create config/environments/production.rb 48 create config/environments/test.rb 49 create config/initializers 50 create config/initializers/application_controller_renderer.rb 51 create config/initializers/assets.rb 52 create config/initializers/backtrace_silencers.rb 53 create config/initializers/cookies_serializer.rb 54 create config/initializers/cors.rb 55 create config/initializers/filter_parameter_logging.rb 56 create config/initializers/inflections.rb 57 create config/initializers/mime_types.rb 58 create config/initializers/new_framework_defaults_5_1.rb 59 create config/initializers/wrap_parameters.rb 60 create config/locales 61 create config/locales/en.yml 62 create config/boot.rb 63 create config/database.yml 64 create db 65 create db/seeds.rb 66 create lib 67 create lib/tasks 68 create lib/tasks/.keep 69 create lib/assets 70 create lib/assets/.keep 71 create log 72 create log/.keep 73 create public 74 create public/404.html 75 create public/422.html 76 create public/500.html 77 create public/apple-touch-icon-precomposed.png 78 create public/apple-touch-icon.png 79 create public/favicon.ico 80 create public/robots.txt 81 create test/fixtures 82 create test/fixtures/.keep 83 create test/fixtures/files 84 create test/fixtures/files/.keep 85 create test/controllers 86 create test/controllers/.keep 87 create test/mailers 88 create test/mailers/.keep 89 create test/models 90 create test/models/.keep 91 create test/helpers 92 create test/helpers/.keep 93 create test/integration 94 create test/integration/.keep 95 create test/test_helper.rb 96 create test/system 97 create test/system/.keep 98 create test/application_system_test_case.rb 99 create tmp 100 create tmp/.keep 101 create tmp/cache 102 create tmp/cache/assets 103 create vendor 104 create vendor/.keep 105 create package.json 106 remove config/initializers/cors.rb 107 remove config/initializers/new_framework_defaults_5_1.rb 108 run bundle install 109Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle 110as root will break this application for all non-root users on this machine. 111The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`. 112Fetching gem metadata from https://rubygems.org/............ 113Fetching gem metadata from https://rubygems.org/. 114Resolving dependencies... 115Bundler could not find compatible versions for gem "railties": 116 In snapshot (Gemfile.lock): 117 railties (= 5.1.5) 118 119 In Gemfile: 120 rails (~> 5.1.5) was resolved to 5.1.5, which depends on 121 railties (= 5.1.5) 122 123 sass-rails (~> 5.0) was resolved to 5.1.0, which depends on 124 railties (>= 5.2.0) 125 126Running `bundle update` will rebuild your snapshot from scratch, using only 127the gems in your Gemfile, which may resolve the conflict. 128 129Bundler could not find compatible versions for gem "sprockets": 130 In snapshot (Gemfile.lock): 131 sprockets (= 4.0.2) 132 133 In Gemfile: 134 sass-rails (~> 5.0) was resolved to 5.0.7, which depends on 135 sprockets (< 4.0, >= 2.8) 136 137 rails (~> 5.1.5) was resolved to 5.1.5, which depends on 138 sprockets-rails (>= 2.0.0) was resolved to 3.2.1, which depends on 139 sprockets (>= 3.0.0) 140 141Running `bundle update` will rebuild your snapshot from scratch, using only 142the gems in your Gemfile, which may resolve the conflict. 143 run bundle exec spring binstub --all 144bundler: command not found: spring 145Install missing gem executables with `bundle install`
フォルダの名前を「myapp」以外にすると、このようなログが出力されます。
myappの部分をすべて任意の名前のフォルダ名に変更したのですが、なぜこのような現象が起きるのでしょうか。
回答1件
あなたの回答
tips
プレビュー