947 B
947 B
Usage
do the steps below at the target app directory, not this Orbit module directory(Rails Engine)
- create kernel/config/initializers/nfu_oracle_config.rb with following content, then
chmod 600it (do not commit it to git):
ENV['ORACLE_USER'] = 'database user name'
ENV['ORACLE_PASSWORD'] = 'database password'
ENV['ORACLE_CONNECT'] = 'host:port/service_name'
- set cron job to run
bundle exec rake sync_nfu_personal_plugins:syncfor nfu everyday
Node.js
- need a supported Node.js LTS version (e.g. 24.x). Ubuntu's own
nodejspackage is 18.x (end of life), install from NodeSource instead:
curl -fsSL https://deb.nodesource.com/setup_24.x -o /tmp/nodesource_setup.sh
sudo bash /tmp/nodesource_setup.sh
sudo apt install nodejs -y
- the API server (lib/sync_nfu_personal_data/api/server.js) is started automatically by rake, listens on 127.0.0.1:3000 only, log: lib/sync_nfu_personal_data/api/nfu_api.log