Coder Social home page Coder Social logo

runverter's Introduction

Runverter Build Status

Runverter is a toolset for runners that helps to convert metrics, calculate times and speed and much more. For more information about this project please check out the detailed blog post.

Installation

$ git clone https://github.com/krachtstefan/runverter.git
$ cd runverter
$ npm install && bower install

Start the app

Run ember server and open http://localhost:8000.

Run Tests

Run ember test for a one time test and ember test --server to trigger tests on every file change.

Deploy

The server setup is maintained in the runverter-server repository and the deploy process is done with ember-cli-deploy.

Workflow of a deploy

As described in this video the deployment process is a combination of the following steps:

  • Compile the ember app locally.
  • Upload all files to Amazon S3 asset server.
  • Publish the index.html page in a dedicated Redis key (like runverter:index:XXXXXX).
  • Preview the version with a secret url like https://runverter.io/?index_key=XXXXXX.
  • Activate the deployed version by copying the value of runverter:index:XXXXXX key to runverter:index:current-content.
  • Since the manifest.appcache can not be delivered via CDN and must be available under the same origin as the app, we additionally upload the static files to the docker machine.

Requirements

  • The hostname runverter.staging and runverter.production need to be added to your /etc/hosts file and point to the proper deployment server running the docker setup described in runverter-server repository.
  • The assets will be uploaded to Amazon S3, so you need a bucket called s.runverter.io.
  • There are a bunch of environment variables that need to be present to deploy the app. Environment variables can be defined by adding lines like export AWS_SECRET_ACCESS_KEY=XXXXXX to your ~/.bash_profile or ~/.zshrc.
    • RUNVERTER_AWS_ACCESS_KEY_ID: Access key ID to access s.runverter.io bucket.
    • RUNVERTER_AWS_SECRET_ACCESS_KEY: Access key to access s.runverter.io bucket.
    • RUNVERTER_DEPLOY_USER_STAGING: SSH user to deploy on runverter.staging.
    • RUNVERTER_DEPLOY_USER_PRODUCTION: SSH user to deploy on runverter.production.

Staging deploy

  • ember deploy staging will compile the app, upload the assets and publish the index page to redis. It will display the key of the deployed version like XXXXXXX.
  • preview the build on http://runverter.staging/?index_key=XXXXXX.
  • ember deploy:list staging lists all available revisions from redis.
  • activate the version with ember deploy:activate staging --revision=XXXXXXX.
  • at last we deploy the manifest.appcache file with ember deploy staging-appcache

Production deploy

  • Repeat the steps described for staging but replace staging with production.

runverter's People

Contributors

krachtstefan avatar

Watchers

 avatar

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.