Sha256: 80b7bb9505172868cd7a940db5c724f1aec5e8134403f2985ecc379f572cff67

Contents?: true

Size: 858 Bytes

Versions: 50

Compression:

Stored size: 858 Bytes

Contents

#!/usr/bin/env ruby

require_relative 'helpers'

app_root do
  use_docker = ask(
    question: 'Would you like to use Docker Compose for Postgres?',
    valid_answers: ['y', 'N']
  )

  header 'Configuring git'
  run! 'git remote add upstream https://github.com/avo-hq/avo.git'

  header 'Installing gems'
  run! 'bundle install'

  header 'Installing Yarn packages'
  run! 'yarn'

  if use_docker == 'y'
    header 'Creating the Docker volume'
    run! 'docker volume create --name=avo-db-data'

    header 'Creating and running the Docker image'
    run! 'docker-compose up -d'
  end

  header 'Preparing the database'
  run! 'bin/rails db:setup'

  header 'Building assets'
  run! 'yarn build:js'
  run! 'yarn build:custom-js'
  run! 'yarn build:css'

  if use_docker == 'y'
    header 'Stopping the Docker image'
    run! 'docker-compose stop'
  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
avo-2.18.1 bin/init
avo-2.18.1.pre.1.eagerloaddirs bin/init
avo-2.18.0 bin/init
avo-2.17.1.pre.5.stackedlayout bin/init
avo-2.17.1.pre.4.issue.1342 bin/init
avo-2.17.1.pre.3 bin/init
avo-2.17.1.pre.2.customauthorizationclients bin/init
avo-2.17.1.pre.1.zeitwerk.eager.load.dir bin/init
avo-2.17.0 bin/init
avo-2.16.1.pre.1.nativefields bin/init
avo-2.16.0 bin/init
avo-2.15.3 bin/init
avo-2.15.3.pre.1.data.attrs.to.sidebar.items bin/init
avo-2.15.2 bin/init
avo-2.15.2.pre.1 bin/init
avo-2.15.1 bin/init
avo-2.15.0 bin/init
avo-2.14.3.pre.7.polytranslations1 bin/init
avo-2.14.3.pre.6.nosprockets bin/init
avo-2.14.3.pre.5.nosprockets bin/init