ngannotate-rails icon indicating copy to clipboard operation
ngannotate-rails copied to clipboard

Not working on dokku

Open kikonen opened this issue 9 years ago • 10 comments

From @ulitiy

Not working on dokku either. Even after cleaning the cache and bumping the assets version.


Moved here from https://github.com/kikonen/ngannotate-rails/issues/10

kikonen avatar Feb 10 '16 06:02 kikonen

Since dokku is different platfoem than heroku, failures there can be non heroku issue related.

Secondly, any traces, logs??

My first suspect with dokku is that needed dependencies for ngannotate are not present. Look into any tracefiles you have from deploy.

kikonen avatar Feb 10 '16 06:02 kikonen

Well it uses heroku buildpacks so problems could be related. unknown provider: e error i think in ui-router controller. Will provide details a bit later.

ulitiy avatar Feb 10 '16 06:02 ulitiy

Could you try locally with compiled assets to see how it works (see readme)

kikonen avatar Feb 10 '16 07:02 kikonen

Updated to latest ngannotate; however, I don't believe it encounters your trouble.

kikonen avatar Feb 10 '16 20:02 kikonen

So, what you get if you do this

NG_FORCE=true RAILS_ENV=development bundle exec rake assets:clobber assets:precompile
NG_FORCE=true rails s -p 3001

kikonen avatar Feb 10 '16 20:02 kikonen

I don't see it working at all) Code from generated file:

  angular.module('btdDashboard', ['btdDashboardComponents', 'ui.router']).config(function($stateProvider, $urlRouterProvider) {
    $urlRouterProvider.otherwise("/");
    return $stateProvider.state('index', {
      url: '/',
      templateUrl: 'index.html'
    }).state('click', {
      abstract: true,
      url: '/click',
      template: '<ui-view/>'
    }).state('click.before', {
      url: '',
      templateUrl: 'click/before.html'
    }).state('click.count_back', {
      templateUrl: 'click/back_counter.html',
      controller: function($scope, $state, $timeout) {

ulitiy avatar Feb 10 '16 22:02 ulitiy

Hm.. should have remembered to notify that for full assets precompile test locally, tou need to modify environments/development.rb. see readme for info.

kikonen avatar Feb 11 '16 20:02 kikonen

Q: what traces you see in development.log. there should be some "ng-xxxx" traces there.

kikonen avatar Feb 11 '16 20:02 kikonen

Yes, I installed the github master version and did modifications to the config file, but I don't see any traces though. I can't see anything working at all. Maybe it doesn't work with coffeescript assets? Sorry...

ulitiy avatar Feb 11 '16 21:02 ulitiy

If there is no ng-xxx traces then surely processor is not used at all. It could be related to coffeescript. Have to admit that I havent tried with it.

kikonen avatar Feb 11 '16 21:02 kikonen