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.6.1.pre.2 bin/init
avo-2.6.1.pre.1 bin/init
avo-2.6.0 bin/init
avo-2.5.2.pre.7 bin/init
avo-2.5.2.pre.6 bin/init
avo-2.5.2.pre.5 bin/init
avo-2.5.2.pre.4 bin/init
avo-2.5.2.pre.3 bin/init
avo-2.5.2.pre.2 bin/init
avo-2.5.2.pre.1 bin/init
avo-2.5.1 bin/init
avo-2.5.0 bin/init
avo-2.4.1 bin/init
avo-2.4.0 bin/init
avo-2.3.1.pre.6 bin/init
avo-2.3.1.pre.5 bin/init
avo-2.3.1.pre.4 bin/init
avo-2.3.1.pre.3 bin/init
avo-2.3.1.pre.2 bin/init
avo-2.3.1.pre.1 bin/init