Skip to content

Commit

Permalink
Merge pull request #5618 from nebulab/spaghetticode/fix-sandbox-issues
Browse files Browse the repository at this point in the history
Fix minor sandbox generation issues
  • Loading branch information
spaghetticode authored Jan 24, 2024
2 parents 8b5f57c + 17647e5 commit 4b46992
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion admin/lib/solidus_admin/install_tailwindcss.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@
end
RUBY

append_file ".gitignore", "app/assets/builds/solidus_admin/"
if Rails.root.join(".gitignore").exist?
append_file ".gitignore", "app/assets/builds/solidus_admin/"
end

unless Rails.root.join("Procfile.dev").exist?
create_file "Procfile.dev", <<~YAML
Expand Down
4 changes: 3 additions & 1 deletion core/lib/generators/solidus/install/install_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,9 @@ def install_solidus_admin
return unless options[:admin_preview]

say_status :installing, "SolidusAdmin", :blue
bundle_command 'add solidus_admin -v ">= 0.2"'
unless File.read(app_path.join('Gemfile')).include?('solidus_admin')
bundle_command 'add solidus_admin -v ">= 0.2"'
end
generate 'solidus_admin:install'
end

Expand Down

0 comments on commit 4b46992

Please sign in to comment.