Titanium JIRA Archive
Appcelerator Community (AC)

[AC-97] Unable to publish arrow project

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionCannot Reproduce
Resolution Date2015-11-12T11:50:05.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsArrow Builder
Labelsarrow
ReporterAnthony
AssigneeMostafizur Rahman
Created2015-04-23T13:07:58.000+0000
Updated2015-11-12T11:50:05.000+0000

Description

Im able to run an arrow project with 4 different models locally but when I try to publish and deploy the app i get the error : Unable to parse URL for publish: Appcelerator Command-Line interface version 0.2.255 Deploying the application to the Appcelerator cloud. One moment.... Error | non-zero exit code

Comments

  1. Anthony 2015-04-24

    I tried creating new projects, logging out and logging back in, and then I tried to publish without creating any models and got this message: Unable to parse URL for publish: Appcelerator Command-Line Interface, version 0.2.255 Installing dependancies....nonmodeltest Checking for 1 module: connector/appc.arrowdb Fetching connector/appc.arrowdb@1.0.71 Installed 1 module Deploying the application to the Appcelerator Cloud. One moment... ERROR | non-zero exit code
  2. Wilson Luu 2015-05-12

    Hi [~Dcat], Please try the following: * Update your Appc CLIs to the latest builds: ** sudo npm install -g appcelerator ** appc use latest * After updating your Appc CLI, try publishing with the DEBUG and trace flags on DEBUG=* appc publish -l trace and comment with the logs Thanks, Wilson
  3. Rakhi Mitro 2015-09-19

    Hello, Tested this issue. It is not a valid bug. *Test Environments:* CLI Version :4.1.3 Titanium SDK Version:4.1.1.GA Appc Studio: Appcelerator Studio, build: 4.1.1.201507141126 Alloy: 1.7.6 Mac OS X,Version = 10.10.1. *Test Step:* 1) Create a arrow project 2) run an arrow project with 4 different models locally 3)To deploy the project to the cloud, from the project directory, execute the following command:
       
       appc publish
       
       
    *Test code:*
       
       var Arrow = require('arrow'),
       	server = new Arrow();
       
       // lifecycle examples
       server.on('starting', function () {
       	server.logger.debug('server is starting!');
       });
       
       server.on('started', function () {
       	server.logger.debug('server started!');
       });
       
       // start the server
       server.start();
       
       
    *Models:* *user.js*
       
       var Arrow = require('arrow');
       
       var User = Arrow.Model.extend('testuser',{
       	fields: {
       		first_name: {type:String},
       		last_name: {type:String},
       		email: {type:String}
       	},
       	connector: 'appc.arrowdb'
       });
       
       module.exports = User;
       
       
    *car.js*
       
       var Arrow = require('arrow');
       
       var car = Arrow.createModel('car', {
           fields: {
               make: { type: String, description: 'the make of a car' },
               model: { type: String, description: 'the model of the car', required: true },
               year: { type: Number, description: 'year the car was made', required: true },
               bluebook: { type: Number, description: 'kelly bluebook value of the car', required: true },
               mileage: { type: Number, description: 'current mileage of the car', required: true }
           },
           connector: 'appc.arrowdb'
       });
       
       module.exports = car;
       
       
    *book.js*
       
       var Arrow = require('arrow');
       
       var book = Arrow.createModel('book', {
           fields: {
         
               author: { type: String, description: 'the model of the author', required: true },
               year: { type: Number, description: 'year the author was made', required: true },
               bluebook: { type: Number, description: 'kelly bluebook value of the author', required: true },
               mileage: { type: Number, description: 'current mileage of the author', required: true }
           },
           connector: 'appc.arrowdb'
       });
       
       module.exports = book;
       
       
    *exam.js*
       
       var Arrow = require('arrow');
       
       var exam = Arrow.createModel('exam', {
           fields: {
           
               name: { type: String, description: 'the name of the exam', required: true },
               subject: { type: Number, description: 'exam topic', required: true },
               year: { type: Number, description: 'exam year', required: true },
           },
           connector: 'appc.arrowdb'
       });
       
       module.exports = exam;
       
       
    *Test Result:* Arrow Project has published successfully without any error. *Ti logs:*
       
       Users-MacBook-Pro:testarr user$ appc publish
       
       Appcelerator Command-Line Interface, version 4.1.3
       
       Copyright (c) 2014-2015, Appcelerator, Inc.  All Rights Reserved.
       
       
       
       Publishing application ... this could take several minutes
       
       Packaging application ... 
       
       Deploying application ... 
       
       Starting application ... 
       
       Application deployed to https://af6376eef581f0366a8e27052d7b6454a09405a1.cloudapp-enterprise.appcelerator.com
       
       Published api/testarr@1.0.0
       
       Users-MacBook-Pro:testarr user$ 
       
       
    Thanks

JSON Source