You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Turbo87 not yet. I am unsure if scp is the way to go anyway. It works well for single files but not so much for recursive directories. I am thinking of placing assets in a version_id subfolder. So assets can be easily managed. I am open to ideas.
For now I am using the ember-cli-deploy-rsync addon for assets.
@arenoir, I think that placing assens in a version_id subfolder is a great idea. Do you have any progress for the task? I can help if you share your progress. It's very important thing for me.
@miguelcobain Rsync makes sense when the assets are uploaded to a common assets directory. I am proposing keeping a folder of assets for each revision. The downside is each revision will certainly have duplicate assets but I feel the benefit of having a complete package of the the revision out ways that.
@arenoir if the fingerprint (and hence the filename) hasn't changed the browser won't re-cache even though the files may reside in multiple directories (multiple copies) on the server.
Multiple directories (plus symlink to target current) makes rolling back to a previous version easier.
@sandstrom having the external path always resolve to the current revision directory would work but prevent previewing other revisions. So perhaps a config option not to change the asset paths is also needed.
I'm currently trying to figure out how to deploy assets using this plugin. Is there a way to also invoke the ember-cli-deploy-rsync plugin to copy the assets?
Ideally, everything would be deployed to the same revision… eg:
/app
active
revisions
<revision-hash>
index.html
assets/
…all assets here
Is that possible currently? Can I somehow pass the revision-hash to the ember-cli-deploy-rsync plugin as target-folder?
@bobbus Not really, I wrote my own deployment plugin (as in-repo addon) to achieve what I need. Other than using rsync to copy files, I also needed to create some custom symlinks, so the custom plugin was pretty much the only option.
Activity
Turbo87 commentedon Feb 1, 2016
@arenoir any progress on this?
arenoir commentedon Feb 1, 2016
Turbo87 not yet. I am unsure if
scpis the way to go anyway. It works well for single files but not so much for recursive directories. I am thinking of placing assets in a version_id subfolder. So assets can be easily managed. I am open to ideas.For now I am using the ember-cli-deploy-rsync addon for assets.
lancedikson commentedon Feb 8, 2016
@arenoir, I think that placing assens in a version_id subfolder is a great idea. Do you have any progress for the task? I can help if you share your progress. It's very important thing for me.
sandstrom commentedon May 25, 2016
Agree, assets support would be great. ⛵
The capistrano flow for something similar is to:
Another one would be support for multiple machines, i.e. an array of IP's to connect to (for upload), whilst only building once.
miguelcobain commentedon Jun 22, 2016
@arenoir any reason in favor of ssh+tar instead of rsync?
Or is your reasoning that since all assets are fingerprinted we need to deploy them again anyway?
Rsync is nice because it uploads the difference.
arenoir commentedon Jun 22, 2016
@miguelcobain Rsync makes sense when the assets are uploaded to a common assets directory. I am proposing keeping a folder of assets for each revision. The downside is each revision will certainly have duplicate assets but I feel the benefit of having a complete package of the the revision out ways that.
arenoir commentedon Jun 22, 2016
The other disadvantage of versioned asset folders is the browser will have to recache assets that may not have really changed between deploys.
sandstrom commentedon Jun 28, 2016
@arenoir if the fingerprint (and hence the filename) hasn't changed the browser won't re-cache even though the files may reside in multiple directories (multiple copies) on the server.
Multiple directories (plus symlink to target current) makes rolling back to a previous version easier.
arenoir commentedon Jun 28, 2016
@sandstrom I am proposing referencing the assets by their versioned path.
The link to the asset would look like.
Even if the file name is the same I don't think the browser will cache it because the path will have changed between versions.
sandstrom commentedon Jun 28, 2016
@arenoir I see, what you propose is one way of doing it.
Another one is something like this:
Which one of these two would be entirely configurable, i.e. depend on webserver configuration.
arenoir commentedon Jun 28, 2016
@sandstrom having the external path always resolve to the current revision directory would work but prevent previewing other revisions. So perhaps a config option not to change the asset paths is also needed.
Here is how I configured nginx to work with revisioned assets. https://gist.github.com/arenoir/ab00ef67f2b2838f78ea950675e1a8bf
miguelcobain commentedon Jul 4, 2016
Idea: copy the assets folder from the previous revision and then rsync to that new directory?
bummzack commentedon Sep 2, 2016
I'm currently trying to figure out how to deploy assets using this plugin. Is there a way to also invoke the
ember-cli-deploy-rsyncplugin to copy the assets?Ideally, everything would be deployed to the same revision… eg:
Is that possible currently? Can I somehow pass the revision-hash to the
ember-cli-deploy-rsyncplugin as target-folder?bobbus commentedon Nov 2, 2016
@bummzack : Did you find how to achieve this ?
bummzack commentedon Nov 3, 2016
@bobbus Not really, I wrote my own deployment plugin (as in-repo addon) to achieve what I need. Other than using rsync to copy files, I also needed to create some custom symlinks, so the custom plugin was pretty much the only option.