Skip to content
This repository has been archived by the owner on Jul 25, 2019. It is now read-only.

remove hostname and root path from gruntfile #1

Open
kavanagh opened this issue Nov 26, 2013 · 0 comments
Open

remove hostname and root path from gruntfile #1

kavanagh opened this issue Nov 26, 2013 · 0 comments

Comments

@kavanagh
Copy link
Member

The Gruntfile.js over in generator-ig-job has this snippet

igdeploy: {
            options: {
                src: 'dist',
                server: 'ftlnx109-lviw-uk-p.osb.ft.com',
                targetRoot: '/var/opt/customer/apps/interactive.ftdata.co.uk/var/www/html',
                targets: {
                    demo: 'sites/2013/seasonal-appeal/myanmar/demo',
                    live: 'sites/2013/seasonal-appeal/myanmar/live'
                }
            }
        },

Would it possible to omit server and targetRoot from my Gruntfile? They could be picked up from the users local .igdeploy file? That way we don't need to expose info about our servers in code repos.

Also, having these values external to the Grunfile (and part of the build environment) make it possible for them to be overriding using environment variables.

So if my Grunfile.js is as above then this will override the server and targetRoot properties in my .igdeploy file.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant