Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: Maintaining a remote package repository using Sencha Cmd

  1. #11
    Ext JS Premium Member
    Join Date
    Jul 2008
    Location
    New Zealand
    Posts
    195

    Default

    There is no problem setting up remote repo according to whatever format is required. It's just the fact that Sencha CMD does not try to access it when I issue the sencha package list drakees command. My understanding is that it is supposed to make an HTTP request to the URL I specified for the repo and try to retrieve the catalog.json file or whatever. This never happens.

  2. #12
    Sencha User
    Join Date
    Mar 2011
    Location
    Arvada, CO
    Posts
    404

    Default

    Quote Originally Posted by Greendrake View Post
    There is no problem setting up remote repo according to whatever format is required. It's just the fact that Sencha CMD does not try to access it when I issue the sencha package list drakees command. My understanding is that it is supposed to make an HTTP request to the URL I specified for the repo and try to retrieve the catalog.json file or whatever. This never happens.
    Well I'll have to experiment on my own to understand your problem. Are you setting it up like I was saying?

  3. #13
    Ext JS Premium Member
    Join Date
    Jul 2008
    Location
    New Zealand
    Posts
    195

    Default

    Quote Originally Posted by incutonez View Post
    Are you setting it up like I was saying?
    I certainly will once I see Sencha CMD making an HTTP request to the remote location I specified for my repo as cited in this post.
    Otherwise, what is the point in setting up remote repo layout if it is not even tried to be accessed?

  4. #14
    Sencha User
    Join Date
    Mar 2011
    Location
    Arvada, CO
    Posts
    404

    Default

    @Greendrake, I'm not entirely sure what your problem is, but I just did a quick test to verify what I said was right, and I think it was. What I did was this... it's a little shady, mainly because I was doing all of this on the same machine because I don't have a proper CDN.
    1. Created a package
    2. Added package to local Sencha CMD repo
    3. Copied contents of pkgs dir in local Sencha CMD repo to local git repo
    4. Uploaded contents to remote git repo (on GitHub)
    5. Deleted local Sencha CMD repo (so it didn't download the package locally)
    6. Created an Ext JS app with Sencha CMD
    7. Added remote repository to Sencha CMD (this took a little while, as I wasn't sure how to use GitHub as a CDN)
    8. sencha repository list showed my package
    9. Required package in app.json
    10. sencha app refresh -packages (downloaded package)
    11. Required class in main.js and was able to see it in my app

    It's good to note that after you have added a remote repository, you must do sencha repo sync if you want to grab the latest changes from your repository... so if there have been newer packages added, or updates to a certain package, you must absolutely run that command.

  5. #15
    Ext JS Premium Member
    Join Date
    Jul 2008
    Location
    New Zealand
    Posts
    195

    Default

    Quote Originally Posted by incutonez View Post
    Added remote repository to Sencha CMD (this took a little while, as I wasn't sure how to use GitHub as a CDN)
    Can you tell more details about that step please?

    I'll try to repeat your steps, however, I do not quite understand why git is relevant. The doc page says nothing about git, which is why I thought that simple placing of the *.pkg file on a web server should work.

  6. #16
    Sencha User
    Join Date
    Mar 2011
    Location
    Arvada, CO
    Posts
    404

    Default

    Quote Originally Posted by Greendrake
    Can you tell more details about that step please?
    Sure, all I did was sencha repo add repoName repoURL

    Quote Originally Posted by Greendrake
    I'll try to repeat your steps, however, I do not quite understand why git is relevant. The doc page says nothing about git, which is why I thought that simple placing of the *.pkg file on a web server should work.
    I mentioned git only because it was relevant for repeating my steps. Like I said, I'm only using git as a CDN, like the docs hint at. As long as your hosted pkgs' structure looks like it does here, then you should be good to go... and make sure you have a catalog.json file that gets updated when your packages do... same for each package's package.json file.

  7. #17
    Sencha Premium User
    Join Date
    Apr 2009
    Location
    Raalte, Netherlands
    Posts
    253

    Default This is how I did it

    I have also looked into the remote packages and I have written a step by step article about it.
    http://www.enovision.net/use-and-hos...mote-packages/

  8. #18
    Sencha User
    Join Date
    Mar 2011
    Location
    Arvada, CO
    Posts
    404

    Default

    Quote Originally Posted by jvandemerwe View Post
    I have also looked into the remote packages and I have written a step by step article about it.
    http://www.enovision.net/use-and-hos...mote-packages/
    This looks similar to how I did it... the only caveat I have is, I had to add a MIME type for .pkg, as I was getting 404s. Now our TeamCity server builds the packages, wraps them in a nupkg, pushes them to build server, and we're able to access the packages from the build server's URL.

  9. #19

    Default

    I leave here my personal notes on how to manage a packages repository. I have one hosted at bitbucket: https://bitbucket.org/alfonsonishika...s%20management

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Maintaining a remote repository for packages
    By Fredric Berling in forum Sencha Cmd
    Replies: 9
    Last Post: 7 Mar 2017, 11:33 AM
  2. Package remote Repository
    By k_cire0426 in forum Sencha Cmd
    Replies: 2
    Last Post: 23 Oct 2013, 1:48 PM
  3. Error: The package command has moved to 'sencha app package'
    By Luis Miguel in forum Sencha Architect 2.x: Help & Discussions
    Replies: 4
    Last Post: 6 Feb 2013, 2:05 PM
  4. Can't package Sencha Touch app as a local android package
    By edwin032602 in forum Sencha Touch 2.x: Q&A
    Replies: 4
    Last Post: 27 Jul 2012, 2:52 AM
  5. Remote Sort, Remote Group, Remote Paging events.
    By FCTim in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 15 Jun 2010, 10:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •