Skip to content

55fleets is a complete platform for deploying and scaling your application online.

License

Notifications You must be signed in to change notification settings

reillyse/55fleets

Repository files navigation

Getting Started Locally

  • Install Postgres
  • Install Redis (for jobs)
  • Install Mongo (for logging)
  • Create the DB
    • rake db:create
    • rake db:migrate
  • Run the webserver (using pow is recommended)
  • Run sidekiq
    • source secrets && bundle exec sidekiq

Set up 55fleets in production

You'll need production databases to connect 55fleets to. We recommend Amazon RDS Postgres or Redis on AWS (there are plenty of free options, which are sufficient for getting started).

You'll need either a Bitbucket API key or a Github API key in order to deploy your code. This is so that you can log in and access your repos and set up webhooks and deploy keys to download the code.

When deploying locally you should use a secrets file.

cat secrets.env
export GSG_KEY_SECRET=gsg_secret_key
export BITBUCKET_APP_TOKEN=
export BITBUCKET_APP_SECRET=
export GITHUB_KEY=
export GITHUB_SECRET=
export REPO_KEY_SECRET=repo_key_secret
export CERT_KEY_SECRET=cert_key_secret
export ENV_KEY_SECRET=somekey
export POSTGRES_HOST=
export POSTGRES_PORT=5432
export POSTGRES_PASS=
export POSTGRES_USERNAME=
export AWS_SECRET_ACCESS_KEY=
export AWS_ACCESS_KEY_ID=
export DEVISE_SECRET_KEY=devise_key_secret

Generate keys for REPO_KEY_SECRET, CERT_KEY_SECRET, GSG_KEY_SECRET, ENV_KEY_SECRET, and DEVISE_SECRET_KEY.

The other keys will need to come from the relevant services.

============

This codebase is a good example of how to prepare your codebase for deployment. You need a Dockerfile for each service in a pod and a docker-compose file for each pod. You can have multiple pods in a deployment, each defined by a docker-compose file. In fact to get started it can be informative to use this app to deploy itself.

About

55fleets is a complete platform for deploying and scaling your application online.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published