Git Product home page Git Product logo

aptible-cli's People

Contributors

aaw avatar adrian-gomez avatar aguilinger avatar almathew avatar bayley-aptible avatar benjodo avatar blakepettersson avatar cbortz avatar ch4s3 avatar chasballew avatar dleve123 avatar faber avatar fancyremarker avatar joeclayallday avatar josh- avatar joshraker avatar krallin avatar madhuravius avatar mattwiese-aptible avatar mdelaossa avatar melcher avatar michaelwang13 avatar neurosnap avatar revan avatar robertfairhead avatar ryanaip avatar steve-mcclellan avatar usernotfound avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aptible-cli's Issues

aptible db:dump

An extension to tunnel which will support dumping databases to file. Initially, it need only support PostgreSQL (via SQL-based pg_dump).

db:clone attempts fail

Check out operation with id "2723", it's a failed db:clone attempt at 2014-08-05 21:42:47 UTC. I don't see anything relevant in our papertrail logs, not sure how to proceed.

source = database_from_handle('hint-api-staging')
=> #<Aptible::Api::Database:0x80d94b14 @root="https://api.aptible.com" @href="https://api.aptible.com/databases/10" @loaded=true @namespace="Aptible::Api" ...>
op = source.create_operation(type: 'clone', handle: 'hint-api-aptible-pg')
=> #<Aptible::Api::Operation:0x8098f168 @root="https://api.aptible.com" @href="https://api.aptible.com/operations/2723" @loaded=true @namespace="Aptible::Api" ...>
op.status
=> "queued"
op.get
=> #<Aptible::Api::Operation:0x8098f168 @root="https://api.aptible.com" @href="https://api.aptible.com/operations/2723" @loaded=true @namespace="Aptible::Api" ...>
op.status
=> "failed"

Timeout errors on Circle CI

command ./scripts/aptible_deploy.sh $BRANCH_APP_NAME took more than 3 minutes since last output

Note that this really applies to Primetime. We can work around the issue by printing output every 10 seconds from primetime-shell.

socat: Address already in use

$ bundle exec aptible db:dump <db-name>
(8ミ | INFO: Connecting to database...

2014/08/05 20:28:29 socat[1012] E bind(3, {AF=2 0.0.0.0:8080}, 16): Address already in use

db:create function

db:create should take a database name and should support the following optional attributes:

  • source: source dump file
  • type (default: postgresql)
  • size (default: 10)

Allow a VHost to be removed

There is no way to remove a VHost that eg has been erroneously added to a service that does not require one. As a consequence every deployment/scaling execution unnecessarily creates an NGiNX proxy, updates ELB etc.

aptible logs

Contemplating the usefulness of this feature, and whether customers have pros/cons that they've experienced with heroku logs that we can learn from...

aptible apps:create

apps:create should create a new app. It should take an optional account attribute, but default to the user's only account, if they only have one.

`aptible tunnel` functionality

$ aptible tunnel <HOST> <PORT>
Authenticating and creating tunnel...
Tunnel to <HOST>:<PORT> created and available at localhost:45455.

Deploy directly from Docker image

  1. Set up a Docker registry user and password for the account.

  2. Each deploy, run:

    aptible apps:deploy --app <app-handle> registry-name/repo-name:tag
    

Stream logs on `git push`

Really a Primetime issue, but this is becoming such a pain for onboarding that we really need to be able to stream logs down from Sweetness back to the Primetime agent.

undefined method `option' for Aptible::CLI::Agent:Class

Confirmed on Thor 0.14.6:

/Users/frank/Code/aptible/aptible-cli/lib/aptible/cli/subcommands/apps.rb:11:in `block in included': undefined method `option' for Aptible::CLI::Agent:Class (NoMethodError)
    from /Users/frank/Code/aptible/aptible-cli/lib/aptible/cli/subcommands/apps.rb:6:in `class_eval'

aptible apps

aptible apps should list all extant apps, a la heroku apps.

db:clone operation

Like db:create, but requires a source handle and destination handle. This obviates adding --source to db:create.

Unhelpful error message on bad token

/Users/frank/.gem/ruby/2.0.0/gems/aptible-api-0.4.3/lib/aptible/api/resource.rb:25:in `all': undefined method `apps' for nil:NilClass (NoMethodError)

apps:create

Should be able to create an app from the command line.

Gem won't install on RubyGems 1.8.23

gem install aptible-cli

ERROR:  While executing gem ... (Gem::DependencyError)

    Unable to resolve dependencies: aptible-auth requires oauth2-aptible (>= 0)

aptible rebuild

Different than restart in that a new image will be built from the same git_ref as the current image. This is useful in cases where the code has not changed, but an upstream Dockerfile dependency has been updated (as in the case of Heartbleed).

aptible config:get

Retrieves a single environment variable, and prints it out (shell-escaped) with no other output

aptible run

A user can run an arbitrary command against the current_image of their app, with its current_configuration. This requires the implementation of BroadwayJoe, integrated with Megatron.

aptible dump

This is a small iteration on top of aptible tunnel, allowing an end user to dump a database to their local computer.

cc: @dleve123

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.