Skip to content

Error when adding material design fonts to applicationFiles #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
taddeimania opened this issue Nov 29, 2015 · 5 comments
Closed

Error when adding material design fonts to applicationFiles #3

taddeimania opened this issue Nov 29, 2015 · 5 comments

Comments

@taddeimania
Copy link

When my applicationFiles consists of:

['index.html', 'assets/gui.css', 'assets/gui.js', 'assets/vendor.css', 'assets/vendor.js']

But when I add 'font/material-design-icons/Material-Design-Icons.eot' to the list so it looks like:

applicationFiles: ['index.html', 'assets/gui.css', 'assets/gui.js', 'assets/vendor.css', 'assets/vendor.js', 'font/material-design-icons/Material-Design-Icons.eot'],

I get the following error:

- Uploading `applicationFiles` to /var/www/app/revisions/7c33053dff16862be49331bfc02ac39c
/Users/me/Projects/app/frontend/node_modules/ember-cli-deploy-ssh2/lib/ssh-client.js:121
            sftp.fastPut(src, dest, {}, function (err) {
                ^
TypeError: Cannot read property 'fastPut' of undefined
@taddeimania
Copy link
Author

This actually seems to be happening randomly regardless of material design icons.

At one point I ran ember deploy production and it ran fine, then immediately ran ember deploy production --activate and it failed and now it's continually failing.

@taddeimania
Copy link
Author

More debugging:

I dumped the error when it fails and I see this:
{ [Error: (SSH) Channel open failure: open failed] reason: 'ADMINISTRATIVELY_PROHIBITED', lang: '' }

@arenoir
Copy link
Owner

arenoir commented Nov 30, 2015

@taddeimania

The applicationFiles property is not designed to upload assets. Thus the sub folders won't be created. Assets are fingerprinted and intended to be put on a cdn or a single directory on a webserver.

Make sure the root directory exists and is readable and writable by the user you are sshing in as.

I intend to add a way to upload assets but for now you could use rsync

@taddeimania
Copy link
Author

@arenoir Thanks for pointing me towards rsync. I had reverted to using a shell script to do an ember build and then just scp the assets/index to the server. Glad I don't have to do that anymore.

@arenoir
Copy link
Owner

arenoir commented Dec 3, 2015

Issue #4 .

@arenoir arenoir closed this as completed Dec 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants