Sha256: 42b9b31e874e0d1e3297fd79d0cc836dcabb0365e3c342685e62e34be6809d81

Contents?: true

Size: 865 Bytes

Versions: 10

Compression:

Stored size: 865 Bytes

Contents

#!/usr/bin/env ruby
require "fileutils"

# path to dummy application root.
APP_ROOT = File.expand_path("../spec/dummy", __dir__)

# path to alchemy gem
GEM_ROOT = File.expand_path("../", __dir__)

def system!(*args)
  system(*args) || abort("\n== Command #{args} failed ==")
end

FileUtils.chdir GEM_ROOT do
  system! "gem install bundler --conservative"
  system("bundle check") || system!("bundle install")
  system("bun -v &> /dev/null") || system!("curl -fsSL https://bun.sh/install | bash")
  system!("bun install")
end

FileUtils.chdir APP_ROOT do
  puts "\n== Installing Alchemy into dummy app =="
  system!("bin/rails g alchemy:install --skip --skip-demo-files --auto-accept")

  puts "\n== Removing old logs and tempfiles =="
  system! "bin/rails log:clear tmp:clear"
end

puts "\n== Alchemy is ready 🎉 =="
puts "Start server by typing:\n\n  bin/start"

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
alchemy_cms-7.4.2 bin/setup
alchemy_cms-7.3.6 bin/setup
alchemy_cms-7.4.1 bin/setup
alchemy_cms-7.4.0 bin/setup
alchemy_cms-7.3.5 bin/setup
alchemy_cms-7.3.4 bin/setup
alchemy_cms-7.3.3 bin/setup
alchemy_cms-7.3.2 bin/setup
alchemy_cms-7.3.1 bin/setup
alchemy_cms-7.3.0 bin/setup