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
const myAppConfig = __.newBean('com.enonic.myapp.MyAppConfig'); | |
exports.get = function (req) { | |
const servicePrefix = `${myAppConfig.getProperty('services_prefix')}`; | |
const portalUrl = myAppConfig.getProperty('common_portalUrl'); |
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
function nextMainContentInterval() { | |
setTimeout(function () {impressApi_mainContent.next(); nextMainContentInterval();}, 5000); | |
} |
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
$ heroku login | |
Enter your Heroku credentials. | |
Email: mr_enonic@example.com | |
Password: | |
Could not find an existing public key. | |
Would you like to generate one? [Yn] | |
Generating new SSH public key. | |
Uploading ssh public key /Users/mr_enonic/.ssh/id_rsa.pub |
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 config parameter locally and in Heroku | |
$>heroku config:add S3_BUCKET=screenshotter-bucket | |
$>heroku config:add S3_SECRET=39203jf23jf923ff32ijf | |
$>heroku config:add S3_KEY=239fjkfof3 | |
Use config parameters in code: | |
AWS.config.update({accessKeyId: process.env.S3_KEY, secretAccessKey: process.env.S3_SECRET, region: process.env.S3_REGION}); | |
var s3 = new AWS.S3(); |
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
web: node app.js |
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
{ | |
"name": "application-name" | |
, "version": "0.0.1" | |
, "private": true | |
, "engines": { | |
"node": ">= 0.0.1", | |
"npm": ">= 0.0.1" | |
} | |
, "dependencies": { | |
"express": ">= 3.x" |
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
<input config="custom" height="157" mode="xhtml" name="text-link" type="htmlarea" width="385"> | |
<buttons>hyperlink,removeformat,history</buttons> | |
<display>Text link</display> | |
<xpath>contentdata/text-link</xpath> | |
<default> | |
<h2>Default value</h2> | |
</default> | |
<help>One text link without line breaks. Whole module is clickable with this link target.</help> | |
</input> |
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
<div itemscope itemtype="http://schema.org/Recipe"> | |
<span itemprop="name">Runes delicious crisp bread</span> | |
<div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating"> | |
<span itemprop="ratingValue">4</span> stars - | |
based on <span itemprop="reviewCount">42</span> reviews | |
</div> |
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
<div itemscope itemtype="http://schema.org/Recipe"> | |
<span itemprop="name">Runes delicious crisp bread</span> | |
Ingredients: | |
<ul> | |
<li itemprop="ingredients">water</li> | |
<li itemprop="ingredients">sesame seeds</li> | |
<li itemprop="ingredients">flax seed</li> | |
</ul> | |
</div> |
NewerOlder