Skip to content

28msec/disclosures

Repository files navigation

#Disclosures Build Status Code Climate

##Development

$ npm install && bower install
$ gulp
$ ionic serve

###iOS Build

$ ionic add build ios
$ ionic build ios
$ ionic emulate ios

###Deployment Configuration There are two scenarios for deploying this project on s3.

To deploy a branch on the 28msec account, the following environment variable need to be set: TRAVIS_SECRET_KEY. The config.json will then automatically be created.

In the root of the repository, create a credentials.json file in the root of the repository. This is the expected structure of the file:

{
    "s3": {
        "dev": {
            "key": "xxxx",
            "secret": "xxxx"
        },
        "prod": {
            "key": "xxxx",
            "secret": "xxxx"
        },
        "region": "us-east-1",
        "website": {
            "ErrorDocument": {
                "Key": "index.html"
            },
            "IndexDocument": {
                "Suffix": "index.html"
            },
            "RoutingRules": [{
                "Redirect": {
                    "ReplaceKeyPrefixWith": "#"
                },
                "Condition": {
                    "HttpErrorCodeReturnedEquals": "403"
                }
            }]
        }
    }
}

###Deployment To setup a test instance

gulp setup --build-id=myfeature

To teardown a test instance

gulp teardown --build-id=myfeature