package
Together with [Rex-Sync Redaxo](https://github.com/AndyBitz/rex-sync-redaxo) this node module will allow you to live update Templates, Modules, AddOns and Assets on your Redaxo Website.
npm install rex-sync-nodeGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Together with Rex-Sync Redaxo this node module will allow you to live update Templates, Modules, AddOns and Assets on your Redaxo Website.
In order to start you'll need to create two files in your npm root directory.
The first one will be rex.secrets.json. This file will contain your credentials to your redaxo system. Make sure to add it to the projects .gitignore file.
Example rex.secrets.json:
{
"auth": "auth_key_from_rex-sync-redaxo_addon"
}The next file will be a short configuration file called rex.config.json. It will contain paths to the specific directories. This file should be stored in your repo.
Example rex.config.json:
{
"website": "https://www.example.com",
"templates": "./path/to/templates/",
"modules": "./path/to/modules/",
"addons": "./path/to/addons/",
"assets": "./path/to/assets/"
}Now, install the package through npm:
npm install -g rex-sync-node... and start
cd my-project
rex-syncDon't forget to install the redaxo addon.
Notes:
The
modulesfolder must look like this:modules/My Module/output.php,modules/My Module/input.phpEverything will be identified by their name not their id. Files that are deleted in yourAssetsorAddOnsfolder will get deleted on the server as well.TemplatesandModuleson the other hand will stay on the server since deleting them might break your site in a more permanant way.
In case you want to add it to your existing dev script etc.
npm install --save-dev rex-sync-nodeconst rex = require('rex-sync-node')
rex() // async function that starts to watch the paths in rex.config.jsonFeel free to open an issue or a pull request.
rex-sync-noderex.secrets.json file.rex.secrets.json instead. So you won't accidentally commit it.npm run dev. This will enable the debug log.Estimated unpacked size across 25 packages.
1.0 MB
Includes dependencies.
5 direct · 5 outdated
^4.0.0
5.0.3
^2.4.1
6.0.1
^2.0.3
6.0.0
^2.3.2
4.0.6
^2.1.2
3.3.2