sudo gem install compass
sudo npm install bower -g
sudo npm install grunt-cli -g
sudo npm install grunt -g
sudo gem install sass
sudo gem install --pre sass-css-importer
npm install && grunt install
config.json
if neededgrunt build
brew install mongodb
[Mac OS]mkdir -p /path/to/data/db
sudo mongod --fork --logpath /var/log/mongodb.log --port 27017 --dbpath /path/to/data
sudo mongod --fork --logpath /var/log/mongodb.log --port 27017 --dbpath /path/to/data
mongo --host the_host --port 27017
use admin
db.createUser({user: "admin", pwd: "iamagod", roles: [ "root" ]})
sudo mongod ... --auth
mongo --username admin --password iamagod admin --authenticationDatabase admin
use main
db.shops.ensureIndex({"loc":"2dsphere"})
db.shops.ensureIndex({"name":"text"})
db.shops.ensureIndex({"address.zip":1})
db.shops.ensureIndex({"address.city":1})
db.shops.ensureIndex({"date":1})
mongodump --username admin --password iamagod --authenticationDatabase admin --db main --collection shops
mongorestore --username admin --password iamagod --db main --authenticationDatabase admin --collection shops dump/test/shops.bson
take autoconf
curl http://ftp.gnu.org/gnu/autoconf/autoconf-latest.tar.gz > autoconf.tar.gz && tar -xzf autoconf.tar.gz && cd autoconf-2.69 && ./configure && make
sudo make install
export PHP_AUTOCONF=/usr/local/bin/autoconf
sudo pecl install mongo
sudo vi /etc/php.ini
and add extension=mongo.so
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
cd api && composer install
dbViewer/config.js
node dbViewer/app.js
sudo mongod --fork --logpath /var/log/mongodb.log --dbpath $HOME/Projects/haveidols/testMongoDB/data --auth
mongo --host localhost --port 27017 --username admin --password iamagod admin --authenticationDatabase admin
mongodump --host localhost --port 27017 --username admin --password iamagod --authenticationDatabase admin --db main --collection shops
srcset
sudo npm install bower -g
sudo npm install grunt -g
sudo gem install sass
sudo gem install --pre sass-css-importer
cd _build && npm install
_build/config.json
if neededcd _build && grunt build
sudo npm install bower -g
sudo npm install grunt -g
sudo gem install sass
sudo gem install --pre sass-css-importer
_build/config.json
if neededcd _build
npm install && grunt build
data-status
of the body
tag when they finishedndex-debug.html
insteadindex-debug.html
loads the non compiled versioncd _build && bower install the_module --save
_dev/js/libs/vendor/the_module/path/to/jsFile
in _dev/main.js
in path section and include module name in the requirejs
callcd _build && bower install the_module --save
_dev/scss/main.scss
and add @import "CSS:../js/libs/vendor/the_module/the_css_path/the_css_file_without_extension";
cd _build && bower install the_module --save
build/config.json
and update the copyFiles
value so the files from the vendor path are copyied in the public assets
folderapi
: the public APIconfigs
: global config and projects config filesclones
: temporary repos clones (clones for building then copying to web
)envs-assets
: projects env specific assetslibs
: libslocks
: the locks folderprocessors
: the processors.*--deploy==ENV==TARGET
$PROCESSOR_AVAILABLE_ENVS
in configs/config.php
processors
processors/*
filesmain
processor must be called first and calls the next processors configured in configs/owner/repo.json->processors
Processor
class (libs/processor.php
)run
methodProcessor
classGITHUB_MASTER_TOKEN
user must have access to all reposGET /repos
POST /repos/:owner/:repo/tag
:tests/api-tests.php
POST /repos/:repo/init
$MASTER_USERS
)tests/api-tests.php
POST /repos/:owner/:repo/hook/init
GITHUB_MASTER_TOKEN
if called from PHP for administration purpose)tests/api-tests.php
POST /repos/:owner/:repo/hook/:token
http://public.url.to.the.api.folder.com/tests/api-tests.php
php tests/processors-test.php
tail -f processing-owner-repo.log
and tail -f api.log
exec
error will go in the apache log : tail -f /var/log/apache2/error_log
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
cp
, rsync
, ssh
, etc.)composer install
mv configs/config.php.sample configs/config.php
configs/config.php
file :
API_PRIVATE_KEY
to a random stringAPACHE_HOME
to an existing folder and make sure Apache can write in it (or sudo mkdir /ghm-tmp && sudo chmod -R 777 /ghm-tmp
(the APACHE_HOME
folder, defined in configs/config.php
)ENV_PATH
so it contains all binaries that might be called from processors (rsync, scp, git), or build files (npm, grunt, etc.)API_URL
is where your api is publicly http availableDEBUG
to false
in production modehttp://public.url.to.the.api.folder.com
List of more or less usefull tests for Photoshop.
Web and app oriented.
A grunt based email builder for designing, testing and publishing.
npm install grunt-cli -g
gem install sass premailer hpricot nokogiri
cd _build
npm install
cp campaigns/config.json.sample campaigns/config.json
grunt
and follow instructionsgrunt _build
: Builds a campaign to campaign-dist/campaign_name
grunt watchit
: Watches and builds a campaigngrunt prod
: Prepare campaign for prod (CDNfys assets) (the campaign-dist/campaign_name
html files are production ready)grunt test
: Sends a test email of a campaign (requires CDN)grunt send
: Sends an email of a campaign (requires CDN)campaign-archives
campaigns
campaigns/config.json
config.json
file in the campaign folder./
: <img src="logo.png" height="50" alt="Mailgun">
or <link href="main.css" media="all" rel="stylesheet" type="text/css"/>
campaigns-archive/_zurb
campaigns-archive/_mailchimp
campaigns-archive/_mailgun
subject
, sender
, receivers
and mandrillKey
in config.json
(global or local)awsKey
, awsSecretAccessKey
and awsBucket
in config.json
(global or local)awsBucket
)receivers
in config.json
to the adress given by Litmus<center>
alt
attribute for images fallback (no special characters)