-
Notifications
You must be signed in to change notification settings - Fork 66
Deploying to remote server hangs #439
Comments
You could try running deploy in
That would give you more insight into what's happening (for instance, is the process slow overall, or is it hanging on a particular file). |
I think the batch approach for remote deployment is getting in the way here, try adding
That will cause modules to be sent across one by one. |
@seongbae-ml, did grtjn's batch suggestion help? |
Hey @dmcassel, Thank you for following up. It works.... but whenever we make a deployment, it looks like it tries to deploy everything in the application folder. We have over 3500 files. Batch runs one file at a time so I always Ctrl+C out of it in the middle. We opted to log onto the server and use git to download the latest changes. Not the most optimal way.. but it seems to work. Actually, when I use -v flag, it shows that it does deploy, but one file at a time. There are over 3500 files in the application folder. Maybe it takes a while to deploy all the files? Are there any options to exclude certain folders from being deployed? Most of 3500 files are front-end libraries that don't update often during development. Seong |
Maybe the batch option doesn't make too much difference. Uploading 3500 files simply takes time. Maybe use the batch=no option only if you are receiving timeouts, a batch=no approach could otherwise mean it simply takes even longer.. :-/ I need to take a closer look at this batching part. Might be useful to be able to influence batch size.. |
@grtjn Is there a way to place libraries outside the application folder? I think either that or being able to exclude certain subfolders during deployment would solve the issue. |
@seongbae-ml if you can identified the files that has been modified since the last deployment you could use There is also the property |
@rlouapre Sweet! Thank you. I will give those a try. |
I think it should also be possible to literally split src/ into for instance src/ and ui/, or src/ and static/. Then you add a method in app_specific called deploy_ui or deploy_static, that overrides @properties["ml.xquery.dir"], and then calls deploy_modules.. |
@seongbae-ml, there's a wiki that shows how to add Custom Build Steps. It has examples on that page. |
I think we can safely close this ticket now. |
Hi,
I used to be able to deploy to a remote server fine... but starting at some point, it stopped working. When I run "./ml dev deploy modules" command, it just hangs and doesn't do anything. When I break out of it using Ctrl+C, it outputs following message:
The only change we had that could potentially break the deployment is using a lot of front-end libraries and dependencies. When I checked number of files in my /xquery folder, there are over 3500 files in it. Would that potentially break the deployment?
Thank you.
Seong
The text was updated successfully, but these errors were encountered: