Sha256: 98d236f23a72a5c1f6a3ebed58234c1d52ed3283137cf678e1f7432f042b8a41

Contents?: true

Size: 739 Bytes

Versions: 152

Compression:

Stored size: 739 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
    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
    header 'Stopping the Docker image'
    run! 'docker-compose stop'
  end
end

Version data entries

152 entries across 152 versions & 1 rubygems

Version Path
avo-1.2.9 bin/init
avo-1.2.8 bin/init
avo-1.2.7 bin/init
avo-1.2.6 bin/init
avo-1.2.6.pre.1 bin/init
avo-1.2.5 bin/init
avo-1.2.4 bin/init
avo-1.2.3 bin/init
avo-1.3.0.pre.1 bin/init
avo-1.2.2 bin/init
avo-1.1.0 bin/init
avo-1.1.0.pre.1 bin/init
avo-1.0.5 bin/init
avo-1.0.4 bin/init
avo-1.0.2 bin/init
avo-1.0.1 bin/init
avo-1.0.0 bin/init
avo-0.5.0.beta15 bin/init
avo-0.5.0.beta14 bin/init
avo-0.5.0.beta13 bin/init