WebFaction
Community site: login faq

I am trying to do the Create Website Records step in the migration guide with the api but I keep getting 'list index out of range' error. The issue seems to be related to the site_apps parameter. Does the API accept something like: ['name (on WebXXX)', '/']?

If I login to the destination machine, specify the desination IP address, and use just 'name' I get an error that the app must be on the same machine as the IP address. If I change it to 'name (on WebXXX)' I get the index out of range error. I get the error regardless of if I use the correct number for XXX.

When you have 2 apps with the same name on 2 different machines, what's the correct way of specifying which app the create_website call should use?

asked 03 Jun '11, 20:59

Bc25
547
accept rate: 0%


We've just updated our API and you can now pass 'app_name machine_name' as the app (for instance: 'htdocs Web200')

permanent link

answered 06 Jun '11, 03:00

remi
1973
accept rate: 26%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×75
×44

question asked: 03 Jun '11, 20:59

question was seen: 2,557 times

last updated: 06 Jun '11, 03:00

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM