lib/fulmar/plugin/neos/rake/neos.rake in fulmar-plugin-neos-1.0.1 vs lib/fulmar/plugin/neos/rake/neos.rake in fulmar-plugin-neos-1.1.0

- old
+ new

@@ -15,9 +15,14 @@ config.set *sync_config[:to].split(':').map(&:to_sym) info 'Syncing assets...' remote_shell.run "rsync -aq #{from_hostname}:#{from_path} Data/Persistent" info 'Publishing assets...' remote_shell.run './flow resource:publish' + + if config[:site_node_name] && config[:domain] + info 'Adding domain...' + remote_shell.run "./flow domain:add --site-node-name #{config[:site_node_name]} --hostname #{config[:domain]}" + end end end end end end