Back to Template

Diff of Changes

Previous version at this commit

puts "== Installing Vite =="
gem "vite_rails"
Bundler.with_unbundled_env { run "bundle install" }
run "bundle exec vite install"

puts
if yes?("== Create bin/dev? [y/N] ==")
  file "bin/dev", <<-CODE
    #!/usr/bin/env sh

    if ! gem list foreman -i --silent; then
      echo "Installing foreman..."
      gem install foreman
    fi

    exec foreman start -f Procfile.dev "$@"
  CODE

  run "chmod a+x bin/dev"
end

run "echo 'Visit https://vite-ruby.netlify.app/guide/ and follow the instructions'"