railsアプリを初めてAWSでデプロイしました。手動でのデプロイ作業を終え、capistranoの実装を試みたのですが、デプロイコマンドを実行するとエラーが発生し自分なりにいくつか解決のために試したのですが、解決できないので質問させていただきます。
terminal
1$bundle exec cap production deploy 2 3~ 省略 ~ 4 5** DEPLOY FAILED 6** Refer to log/capistrano.log for details. Here are the last 20 lines: 7 8 9compiling ./libsass/src/output.cpp 10 11compiling ./libsass/src/parser.cpp 12 13virtual memory exhausted: Cannot allocate memory 14 15make: *** [parser.o] エラー 1 16 17 18 19make failed, exit code 2 20 21 22 23Gem files will remain installed in 24 25/var/www/rails/smile-mail/shared/bundle/ruby/2.7.0/gems/sassc-2.4.0 for 26 27inspection. 28 29Results logged to 30 31/var/www/rails/smile-mail/shared/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/sassc-2.4.0/gem_make.out 32 33 34 35An error occurred while installing sassc (2.4.0), and Bundler cannot continue. 36 37Make sure that `gem install sassc -v '2.4.0' --source 'https://rubygems.org/'` 38 39succeeds before bundling. 40 41 42 43In Gemfile: 44 45 bulma-rails was resolved to 0.9.0, which depends on 46 47 sassc 48
ruby
1source 'https://rubygems.org' 2git_source(:github) { |repo| "https://github.com/#{repo}.git" } 3 4ruby '2.7.1' 5 6# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' 7gem 'rails', '~> 6.0.3', '>= 6.0.3.3' 8# Use sqlite3 as the database for Active Record 9# gem 'sqlite3', '~> 1.4' 10# Use Puma as the app server 11gem 'puma', '~> 4.1' 12# Use SCSS for stylesheets 13gem 'sass-rails', '>= 6' 14# Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker 15gem 'webpacker', '~> 4.0' 16# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks 17gem 'turbolinks', '~> 5' 18# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder 19gem 'jbuilder', '~> 2.7' 20# Use Redis adapter to run Action Cable in production 21# gem 'redis', '~> 4.0' 22# Use Active Model has_secure_password 23# gem 'bcrypt', '~> 3.1.7' 24 25# Use Active Storage variant 26# gem 'image_processing', '~> 1.2' 27 28# Reduces boot times through caching; required in config/boot.rb 29gem 'bootsnap', '>= 1.4.2', require: false 30 31group :development, :test do 32 gem 'capistrano' 33 gem 'capistrano-rbenv' 34 gem 'capistrano-bundler' 35 gem 'capistrano-rails' 36 gem 'capistrano3-unicorn' 37 gem 'byebug', platforms: [:mri, :mingw, :x64_mingw] 38end 39 40group :development do 41 # Access an interactive console on exception pages or by calling 'console' anywhere in the code. 42 gem 'web-console', '>= 3.3.0' 43 gem 'listen', '~> 3.2' 44 # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring 45end 46 47group :test do 48 # Adds support for Capybara system testing and selenium driver 49 gem 'capybara', '>= 2.15' 50 gem 'selenium-webdriver' 51 # Easy installation and use of web drivers to run system tests with browsers 52 gem 'webdrivers' 53end 54 55group :production, :staging do 56 gem 'unicorn' 57end 58 59# Windows does not include zoneinfo files, so bundle the tzinfo-data gem 60gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] 61 62gem 'devise' 63gem 'devise-i18n' 64gem 'devise-i18n-views' 65gem 'carrierwave' 66gem "bulma-rails", "0.9.0" 67gem "sassc", "2.4.0" 68gem 'mini_magick' 69gem 'omniauth' 70gem 'omniauth-twitter' 71gem 'dotenv-rails' 72gem 'kaminari' 73gem 'rails-i18n' 74gem 'config' 75gem 'meta-tags'
試したこと
bulma-railsのバージョンを0.9.0を指定
sassc 2.4.0をインストール
上記の二つを試しましたがエラー内容は変わりありませんでした。
力をお貸ししてくれるとありがたいです。何卒よろしくお願いいたします。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。