GithubHelp home page GithubHelp logo

aptible / support Goto Github PK

View Code? Open in Web Editor NEW
2.0 10.0 17.0 2.21 MB

DEPRECATED - Aptible's Support and Documentation Site

Ruby 23.10% Shell 0.29% HTML 39.01% JavaScript 0.09% CoffeeScript 4.06% CSS 33.46%

support's People

Contributors

aaw avatar alexsoble avatar aptible-robot avatar boydgreenfield avatar chasballew avatar evan-007 avatar gib avatar jbergknoff avatar joelbowen avatar krallin avatar kylefox avatar lordb8r avatar mlocher avatar santry avatar skylar-anderson avatar wyc avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

support's Issues

Minor issues: desktop layout

  • Currently, all "Contact Us" links fall back to mailto: links. Should these be a contact form? (Maybe fine as-is.)
  • "Fenced" code currently overflows its div, needs scrollbar. #1 below
  1. image

Mobile design

Using this ticket as a placeholder for mobile design issues. Feel free to create checklists here.

Dockerfile caching broken when running `ADD .`

Despite adding a hack to update the mtime of all files on git clone, running ADD . still always busts the cache. This is because we chose to update the mtime to the time of the last commit — so if any new commits came in, it would bust the cache. This is true of any deploy, and so our hack would only work for operations like aptible rebuild.

This hack uses a fixed time for the mtime, and I figure we should do the same.

@jbergknoff — do you see any issues with a fixed mtime?

PostgreSQL Errors During Large Data Migrations In `after_release`

cc: @fancyremarker

When running a large data migration on our Rails app we received a cascade of postgreSQL related errors when running migrations in the after_release context as defined in .aptible.yml:

  1. PG::ConnectionBad: PQconsumeInput() server closed the connection unexpectedly,
  2. PG::ConnectionBad: PQsocket() can't get socket descriptor: ROLLBACK * 2,
  3. PG::ConnectionBad: PQsocket() can't get socket descriptor,
  4. ActiveRecord::StatementInvalid: PG::ConnectionBad: PQconsumeInput() server closed the connection unexpectedly,
  5. NoMethodError: undefined method 'result_error_field' for nil:NilClass (related to Rails' postgres adapter)

The migration run failed in the same way twice. The migration was successful when ran manually via aptible ssh rake db:migrate.

Deploy error: "Archive::Tar::Minitar::FileNameTooLong"

Attempts to deploy to Aptible are failing with the following error:

Writing objects: 99% (130/131)
Writing objects: 100% (131/131)
Writing objects: 100% (131/131), 17.08 KiB | 0 bytes/s, done.
Total 131 (delta 92), reused 42 (delta 18)
remote: (8ミ | INFO: Authorizing...
remote: (8ミ | INFO: Initiating deploy...
remote: (8ミ | INFO: Deploying...
remote: INFO -- : Building app image from source...
remote: ERROR -- : Archive::Tar::Minitar::FileNameTooLong
remote: (8ミ | FATAL: Deploy failed.

Swiftype crawlability

For some reason, Swiftype is failing to crawl the domain, even after adding a permissive /robots.txt :

Continuous deployment on successful build

@sandersonet: my thinking here is we should deploy to both staging and production on each successful merge to master. I don't see many situations where we wouldn't want to automatically update the live support site when we've got new content. We can always deploy manually to staging to preview what a given PR will look like before merging it.

Thoughts?

Can I run a command or SSH into my live production app containers?

Right now, the only way to create a remote SSH session is via aptible ssh, which creates a new, one-time use container from your app's current configuration and image. For security reasons, this does not have access to your live app's process space.

In the future, we may support running commands against live app containers, a la docker exec, but that's not being contemplated currently. Leaving this issue open to address any related questions.

How deployment works

The most popular search term in Swiftype is deploy--the results of which aren't very helpful for newcomers. We should write an article that summarizes how deployment works and links out to the quickstart guides. We should manually pin this to the top of the deploy query.

Initial support topics (FAQs) set

Most of these are already written, just keeping track of a total list here which we can check off from when merged.

Migrating to Aptible

  • How do I migrate from Heroku?
  • How do I import my existing Heroku PostgreSQL database?
  • How do I import my existing MongoDB database?
  • How do I import my existing MySQL database?

HIPAA

  • What is Protected Health Information (ePHI)?
  • What is a Business Associate Agreement (BAA)?
  • What third-party SaaS companies will sign a BAA?
  • What constitutes a breach of ePHI?
  • What should I do if I believe a breach of ePHI has occurred?

Using the PaaS

  • What databases does Aptible support?
  • How do I add a background worker to my app?
  • How do I set up Travis CI to deploy to Aptible?
  • How do I set up Circle CI to deploy to Aptible?
  • How do I scale my app?
  • What is a "container" on Aptible?
  • How do I set up Papertrail for my Aptible apps?
  • How do I automate database migrations for my app?
  • How do I update the SSL certificate and private key for my app?
  • How do I add a new external domain to my app?
  • How should I store static assets when using Aptible?
  • How do I prevent public internet access to my app?
  • My app requires a specific OS package. How should I install it?
  • How do I run scheduled tasks (cron jobs) on Aptible?
  • How do I contribute to Aptible's open source repos?
  • How do I access environment variables inside a Dockerfile?
  • What is the difference between the CMD in my Dockerfile and the processes in my Procfile?
  • How do I set up caching for Bundler?
  • How do I set up caching for npm packages?
  • How do I restore from an Aptible database backup?

Aptible CLI

  • How do I install the Aptible CLI?
  • How do I connect to my Aptible database using a GUI tool?
  • How do I connect to my Aptible database from outside Aptible?
  • How do I view my app logs?
  • How do I set environment variables for my app?
  • How do I SSH into my app?
  • How do I restart my app?
  • How should I configure sensitive variables for my app?

Troubleshooting

  • My deploy failed. What should I do?
  • How do I fix the error "no pg_hba.conf entry for host, ... SSL off"?
  • When I push to Aptible, Git says "Everything up-to-date." What should I do?
  • My deploy failed, saying "before_release commands failed." What should I do?
  • My deploy failed, saying "Container failed to start." What should I do?
  • My deploy failed, saying "Health check failed." What should I do?
  • My deploy failed, saying "No Procfile found." What should I do?
  • My app stopped working. What should I do?
  • I just added a domain to my app and it's not responding. What should I do?
  • My deploys take too long. How can I speed them up?
  • My app is processing requests slowly. What should I do?

Your Aptible Account

  • How do I invite a new user to Aptible?
  • What different plans does Aptible offer?
  • How do I set up a separate staging environment for my apps and databases?

Keep feature branches up-to-date with staging.

Specifically, this could either mean us being able to create feature branches on the fly with staging data on aptible, or potentially have a way to push staging data from aptible directly to heroku would be great!

So for feature branches, this might look like...
aptible pg:copy $STAGING_APP_NAME::DATABASE_URL DATABASE_URL --app $APP_NAME --confirm $APP_NAME

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.