Skip to content
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

Change sites import to accept local files #732

Open
ioskevich opened this issue Dec 7, 2015 · 5 comments
Open

Change sites import to accept local files #732

ioskevich opened this issue Dec 7, 2015 · 5 comments

Comments

@ioskevich
Copy link

Terminus version: 0.9.3
Terminus script: boot-fs.php

I have prepared site archive using drush ard and was able to import it with no problem through Pantheon UI. However, it fails when trying to do the same with terminus (same archive loaded from local file system, same Pantheon account).

CLI input/output:

WORK-MBA:~ vitaly$ terminus sites import
Human-readable label for the site: CLI TEST
Machine name of the site; used as part of the default URL (if left blank will be cli-test):
URL of archive to import: /Users/vitaly/Documents/TEMP/PROJECTS/AIR/safesupportive.20151202_161303.tar.gz
...................
[2015-12-07 11:32:45] [info] Created new site "cli-test"

Notice: Undefined variable: org_id in /Users/vitaly/terminus/php/Terminus/Models/Collections/Sites.php on line 80
..
[2015-12-07 11:33:06] [error] An error occurred, process unsuccessful.

New site has been created and accessible via dashboard: https://dashboard.pantheon.io/sites/1b9f11fc-7e2c-46dc-bde8-1452c9170ac1#dev/code

Going to dashboard then shows that site is created, but import was not actually run with the error in the workflows dropdown - Import code, files and database to "dev” failed.
Trying to run import once again through UI for the same site (as suggested by messages in site's dashboard) with same site archive succeeds.

Doing all the same through UI (create site, choose import file, choose same archive from local file system) creates files and runs import just fine.

@TeslaDethray
Copy link
Contributor

Hi, @ioskevich. The issue is that the --url param only accepts files already uploaded to the internet. Local files cannot be used with the command. I hope you don't mind, but I've changed the title of your issue here from "terminus sites import fails" to "Change sites import to accept local files" and marked it as a feature request.

@TeslaDethray TeslaDethray changed the title terminus sites import fails Change sites import to accept local files Dec 7, 2015
@ioskevich
Copy link
Author

Cool, thanks for converting it into feature request. Being able to import local archive would be quite handy.

@kellybell
Copy link

++1 this feature request!!

@wardAndrew
Copy link

+1

@TeslaDethray
Copy link
Contributor

Update: This work is being done as part of our site migrations project. We're updating how you create sites on Pantheon so that imports (which you'll find will be called "migrations" instead) so that it has a significantly improved rate of success. Stay tuned.

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

No branches or pull requests

4 participants