[AC-97] Unable to publish arrow project
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Resolved |
| Resolution | Cannot Reproduce |
| Resolution Date | 2015-11-12T11:50:05.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Arrow Builder |
| Labels | arrow |
| Reporter | Anthony |
| Assignee | Mostafizur Rahman |
| Created | 2015-04-23T13:07:58.000+0000 |
| Updated | 2015-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
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
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 onDEBUG=* appc publish -l traceand comment with the logs Thanks, WilsonHello, 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:
*Test code:**Models:* *user.js*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();*car.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;*book.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;*exam.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;*Test Result:* Arrow Project has published successfully without any error. *Ti logs:*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;Thanks