This is the hack approach to adding environment variables to the nginx configuration files. As with most Google results for this search, the reason is Docker.
I intended to deploy two Docker containers.
// | |
// NSString+Levenshtein.h | |
// PyHelp | |
// | |
// Modified by Michael Bianco on 12/2/11. | |
// <http://mabblog.com> | |
// | |
// Created by Rick Bourner on Sat Aug 09 2003. | |
// rick@bourner.com |
# !/bin/bash | |
# Copyright (c) 2011 Float Mobile Learning | |
# http://www.floatlearning.com/ | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining | |
# a copy of this software and associated documentation files (the "Software"), | |
# to deal in the Software without restriction, including without limitation | |
# the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
# and/or sell copies of the Software, and to permit persons to whom the |
<?php | |
// Put your device token here (without spaces): | |
$deviceToken = 'replace-this-text-with-the-device-token-from-remoteRegistration'; | |
// Put your private key's passphrase here: | |
$passphrase = 'YOUR-PASSPHRASE-HERE'; | |
// Put your alert message here: | |
$message = 'My Corona SDK push notification!'; |
######################### | |
# .gitignore file for Xcode4 / OS X Source projects | |
# | |
# Version 2.0 | |
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects | |
# | |
# 2013 updates: | |
# - fixed the broken "save personal Schemes" | |
# | |
# NB: if you are storing "built" products, this WILL NOT WORK, |
#!/usr/bin/perl | |
use strict; | |
die "$0: Must be run from Xcode" unless $ENV{"BUILT_PRODUCTS_DIR"}; | |
my $INFO = "$ENV{BUILT_PRODUCTS_DIR}/$ENV{WRAPPER_NAME}/Info.plist"; | |
my $G_COMMIT = `git rev-parse --short HEAD`; | |
my $G_BRANCH = `git rev-parse --abbrev-ref HEAD`; | |
my $G_VERSION = `/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" "${INFO}"`; |
#!/bin/bash | |
SWIFT_ARGS= | |
while getopts w opt; do | |
case $opt in | |
w) | |
SWIFT_ARGS='-w' | |
;; | |
esac |
// App | |
import { Component } from '@angular/core'; | |
@Component({ | |
selector: 'app', | |
template: '<span>{{ sayHello() }}</span>', | |
}) | |
export class App { | |
public name: string = 'John'; |
import UIKit | |
@UIApplicationMain | |
class AppDelegate: UIResponder, UIApplicationDelegate { | |
var window: UIWindow? | |
var rootVC: UINavigationController? = nil | |
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { | |
window = UIWindow(frame: UIScreen.main.bounds) |
This is the hack approach to adding environment variables to the nginx configuration files. As with most Google results for this search, the reason is Docker.
I intended to deploy two Docker containers.