angular.module('coolapp', ['coolapp-constants'])
.service('backendService', function($http, apiUrl){
//Use the apiUrl variable to make API calls
});
// localdev.json
{
"apiUrl":"https://dev.coolapp.com/api"
}
// production.json
{
"apiUrl":"https://www.coolapp.com/api"
}
var gulp = require('gulp');
var replace = require('gulp-replace-task');
var args = require('yargs').argv;
var fs = require('fs');
gulp.task('replace', function () {
// Get the environment from the command line
var env = args.env || 'localdev';
grunt.initConfig({
ripple: {
options: {
path: 'www',
keepAlive: true
}
}
});
I hereby claim:
- I am jeff-french on github.
- I am jfrench (https://keybase.io/jfrench) on keybase.
- I have a public key ASDeIDr2W-uhvt6FtfYkhKZ4o4TXhgwOfrIU0Usfal6-oQo
To claim this, I am signing this object:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var resolve = require('json-refs').resolveRefs; | |
var YAML = require('yaml-js'); | |
var fs = require('fs'); | |
var root = YAML.load(fs.readFileSync('index.yml').toString()); | |
var options = { | |
filter : ['relative', 'remote'], | |
loaderOptions : { | |
processContent : function (res, callback) { | |
callback(null, YAML.load(res.text)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: game-demo | |
data: | |
# property-like keys; each key maps to a simple value | |
player_initial_lives: "3" | |
ui_properties_file_name: "user-interface.properties" | |
# file-like keys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: configmap-demo-pod | |
spec: | |
containers: | |
- name: demo | |
image: alpine | |
command: ["sleep", "3600"] | |
env: |
OlderNewer