This file contains 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
"config": { | |
"process-timeout": 180000, | |
"github-protocols": ["https","http"], | |
"github-oauth": { | |
"github.com": "234669724c517d484e51724c517d484e51" | |
} | |
} |
This file contains 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
files: | |
"/etc/httpd/conf.d/vhost.conf": | |
mode: "000644" | |
owner: root | |
group: root | |
encoding: plain | |
content: | | |
NameVirtualHost *:80 | |
# | |
<VirtualHost *:80> |
This file contains 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
commands: | |
01cacheClear: | |
command: rm -rf ~/.composer | |
02updateComposer: | |
command: export COMPOSER_HOME=/root && /usr/bin/composer.phar self-update 1.0.0-alpha11 | |
03globalrequired: | |
command: export COMPOSER_HOME=/root && /usr/bin/composer.phar global require fxp/composer-asset-plugin:1.1.3 | |
This file contains 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
branch-defaults: | |
master: | |
environment: cdv-core-debug | |
global: | |
application_name: cdv-core | |
default_ec2_keyname: hem-sg-pg | |
default_platform: 64bit Amazon Linux 2015.09 v2.0.4 running PHP 5.6 | |
default_region: us-east-1 | |
profile: hemc-root | |
sc: git |
This file contains 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
set :user, "ubuntu" | |
set :group, "www-data" | |
server "54.169.xx.xx",roles: %w{web app db}, :primary => true | |
server "54.179.xx.xx",roles: %w{web app db} | |
#server "54.169.xx.xx",roles: %w{web app db} | |
#server "54.169.xx.xx",roles: %w{web app db} | |
#server "54.169.xx.xx",roles: %w{web app db} |
This file contains 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
<script> | |
window.fbAsyncInit = function() { | |
FB.init({ | |
appId : 'XXXXXXXXXX', // App ID | |
channelUrl : '//www.domain.com/channel.html', // Channel File | |
status : true, // check login status | |
cookie : true, // enable cookies to allow the server to access the session | |
xfbml : true // parse XFBML | |
}); |
This file contains 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 AWS = require('aws-sdk'); | |
AWS.config.loadFromPath('./aws.config.json'); | |
var dd = new AWS.DynamoDB(); | |
var tableName = 'session'; | |
var keyName='id'; | |
function getSession() { | |
var db = new AWS.DynamoDB(); | |
db.client.scan({ |
This file contains 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
Stop Nignx | |
sudo service nginx stop | |
Edit nginx config | |
server { | |
listen 80; | |
root /usr/share/nginx/www/www.gtl.com; |
This file contains 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
ls | |
sudo apt-get update | |
sudo apt-get install apache2 | |
sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt | |
sudo nano /etc/apache2/mods-enabled/dir.conf | |
cd /var/www/html/ | |
ls | |
sudo service apache2 restart | |
ls | |
sudo nano info.php |
NewerOlder