Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
90 lines (77 sloc) 2.64 KB
jpsType: install
jpsVersion: '1.5.2'
id: magento
name: Magento Standalone
logo: https://raw.githubusercontent.com/jelastic-jps/magento/master/magento/images/magento.png
categories:
- apps/e-commerce
- apps/sales-and-marketing
homepage: http://www.magentocommerce.com/
description:
en: Magento is the eCommerce software and platform trusted by the world's leading
brands. Grow your online business with Magento!
baseUrl: https://raw.githubusercontent.com/jelastic-jps/magento/master/magento
onBeforeInit: /scripts/settings.js
globals:
DB_USER: jelastic-${fn.random}
DB_PASS: ${fn.password(10)}
IS_JELASTIC_SSL: false
PROTOCOL: http
ADMIN_PASS: ${fn.password(10)}
onInstall:
- if (!${settings.ls-addon:false}):
setGlobals:
APP_SERVER: nginxphp
- if (${settings.ls-addon:false}):
setGlobals:
APP_SERVER: litespeedphp
- script: |
return {
result:0,
regions:'${settings.regions}'.split(','),
envGroups:eval('(' + MANIFEST + ')').envGroups,
ssl: jelastic.billing.account.GetQuotas('environment.jelasticssl.enabled').array[0].value
}
- if (${response.ssl}):
setGlobals:
IS_JELASTIC_SSL: true
PROTOCOL: https
- setGlobals:
REGION: ${response.regions[0]}
ENVGROUP: ${response.envGroups}
- script: |
var resp, result;
resp = jelastic.env.control.GetRegions(appid, session);
if (resp.result != 0) return resp;
resp = resp.array;
for (var i = 0, n = resp.length; i < n; i++) {
for (var k = 0, l = resp[i].hardNodeGroups.length; k < l; k++) {
if (resp[i].hardNodeGroups[k].uniqueName == '${globals.REGION}') {
return {result: 0, domain: resp[i].domain}
}
}
}
return {result: 0, domain: resp[0].domain}
- setGlobals:
REGION-DOMAIN: ${response.domain}
- install:
- jps: /topology/${globals.APP_SERVER}.jps?_r=${fn.random}
envName: ${settings.envName}
loggerName: ${settings.envName}
region: ${globals.REGION}
envGroups: ${globals.ENVGROUP}
ssl: ${globals.IS_JELASTIC_SSL}
settings:
magento_version: ${settings.magento_version}
db_user: ${globals.DB_USER}
db_pass: ${globals.DB_PASS}
admin_pass: ${globals.ADMIN_PASS}
- api: jelastic.env.control.GetEnvInfo
envName: ${settings.envName}
- forEach(response.nodes):
if (${@i.ismaster} && '${@i.nodeGroup}' == 'sqldb'):
- setGlobals:
masterDB-ID: ${@i.id}
success:
email: success/email/success.md?_r=${fn.random}
text: success/text/success.md?_r=${fn.random}
You can’t perform that action at this time.