Sha256: 5ad4216bde509290a91885f0af03e379ec443d287ae3d1ed17e98774b59be468

Contents?: true

Size: 753 Bytes

Versions: 44

Compression:

Stored size: 753 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'

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

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
avo-2.11.1.pre.3 bin/init
avo-2.11.1 bin/init
avo-2.11.1.pre.2 bin/init
avo-2.11.1.pre.1 bin/init
avo-2.11.0 bin/init
avo-2.10.3.pre.1 bin/init
avo-2.10.2 bin/init
avo-2.9.2.pre1 bin/init
avo-2.10.0 bin/init
avo-2.9.1.pre7 bin/init
avo-2.9.1.pre6 bin/init
avo-2.9.1.pre5 bin/init
avo-2.9.1.pre4 bin/init
avo-2.9.1.pre3 bin/init
avo-2.9.1.pre2 bin/init
avo-2.9.1.pre1 bin/init
avo-2.9.0 bin/init
avo-2.8.0 bin/init
avo-2.7.1.pre.1 bin/init
avo-2.7.0 bin/init