Developer Tools

Customize Incorta to work with your data sources or to customize the way the tool works.

javascript example

function redirectFromToCurrentSlug(fromPath) {
  // with slash
  createRedirect({
    fromPath,
    toPath: slug,
    isPermanent: true,
    redirectInBrowser: true,
  })
  // without slash
  createRedirect({
    fromPath: fromPath.replace(/\/$/, ''),
    toPath: slug,
    isPermanent: true,
    redirectInBrowser: true,
  })
}

bash example

#!/bin/bash

Incorta_dir=~/IncortaAnalytics

start() {
  echo "start"
  cd $Incorta_dir/cmc
  ./start-cmc.sh
  cd $Incorta_dir/IncortaNode/
  ./startNode.sh
  sleep 10
  ./startService.sh loaderService
  sleep 5
  ./startService.sh analyticsService
}

stop() {
  echo "stop"
  cd $Incorta_dir/IncortaNode/
  ./stopService.sh loaderService
  sleep 5
  ./stopService.sh analyticsService
  sleep 10
  ./stopNode.sh
  cd $Incorta_dir/cmc
  ./stop-cmc.sh
}

restart() {
  echo "restart"
  stop
  sleep 10
  start
}

$($1)

© Incorta, Inc. All Rights Reserved.