Project

General

Profile

Support #8185

How to update app/Resources/public/assets directory

Added by Angel Quiroz almost 4 years ago. Updated over 3 years ago.

Status:
Bug resolved
Priority:
Normal
Assignee:
-
Category:
System
Target version:
Start date:
06/04/2016
Due date:
% Done:

100%

Estimated time:
Complexity:
Normal
SCRUM pts - complexity:
?

Description

Intenté con bower install src/Chamilo/CoreBundle/Resources/config/bower.json pero me intenta instalar cosas de webcomponents y polymer
Y luego con bower update obtengo esto:

bower ChamiloLMS#*                             ENOENT ENOENT: no such file or directory, stat '/var/www/html/chamilo/src/Chamilo/CoreBundle/Resources/config/bower.json'

Stack trace:
Error: ENOENT: no such file or directory, stat '/var/www/html/chamilo/src/Chamilo/CoreBundle/Resources/config/bower.json'
    at Error (native)

Console trace:
Error
    at StandardRenderer.error (/usr/lib/node_modules/bower/lib/renderers/StandardRenderer.js:81:37)
    at Logger.<anonymous> (/usr/lib/node_modules/bower/lib/bin/bower.js:110:26)
    at emitOne (events.js:77:13)
    at Logger.emit (events.js:169:7)
    at Logger.emit (/usr/lib/node_modules/bower/lib/node_modules/bower-logger/lib/Logger.js:29:39)
    at /usr/lib/node_modules/bower/lib/commands/index.js:48:20
    at _rejected (/usr/lib/node_modules/bower/lib/node_modules/q/q.js:844:24)
    at /usr/lib/node_modules/bower/lib/node_modules/q/q.js:870:30
    at Promise.when (/usr/lib/node_modules/bower/lib/node_modules/q/q.js:1122:31)
    at Promise.promise.promiseDispatch (/usr/lib/node_modules/bower/lib/node_modules/q/q.js:788:41)
System info:
Bower version: 1.7.9
Node version: 4.4.2
OS: Linux 4.2.0-34-generic x64

Para evitar eso, tengo que modificar app/Resources/public/assets/ChamiloLMS/.bower.json. Está bien así?

Associated revisions

Revision 88b3acf7 (diff)
Added by Angel Fernando Quiroz Campos almost 4 years ago

Update bower assets - refs #8185

History

#1

Updated by Julio Montoya almost 4 years ago

  • Status changed from New to Needs more info
  • Assignee changed from Julio Montoya to Angel Quiroz

Para actualizar la carpeta "app/Resources/public/assets"

Se tiene que editar el archivo json aqui:

/var/www/html/xxx/src/Chamilo/CoreBundle/Resources/config/bower.json

Luego de editar ejecutar bower:

bower install --force /var/www/html/xxx/src/Chamilo/CoreBundle/Resources/config/bower.json 

Luego ejecutar:

composer update

Si no funciona, entonces poner el bower.json modificado aqui para tratar de instalarlo de mi lado.

#2

Updated by Angel Quiroz almost 4 years ago

Actualicé los bower assets 88b3acf

El problema era que en app/Resources/public/assets/ChamiloLMS/.bower.json está declarada la ruta /var/www/html/chamilo/src/Chamilo/CoreBundle/Resources/config/bower.json y mi instalación está en /var/www/chamilo110x/

#3

Updated by Angel Quiroz almost 4 years ago

  • Status changed from Needs more info to Needs testing
  • Assignee deleted (Angel Quiroz)
  • % Done changed from 0 to 80
#4

Updated by Yannick Warnier over 3 years ago

Angel, puedo cerrar esta tarea? Quieres poner una página de wiki acerca de esto (y referenciarla aquí) para el nuevo método? (que ya no pasa por bower-assets)

#5

Updated by Yannick Warnier over 3 years ago

  • Tracker changed from Bug to Support
  • Category set to System
  • Status changed from Needs testing to Assigned
  • Assignee set to Angel Quiroz
#6

Updated by Angel Quiroz over 3 years ago

Actualicé la wiki de "Release procedure"; agregué la sección Bower assets
https://support.chamilo.org/projects/chamilo-18/wiki/Release_procedure#Bower-assets

#7

Updated by Angel Quiroz over 3 years ago

  • Status changed from Assigned to Needs testing
  • Assignee deleted (Angel Quiroz)
  • % Done changed from 80 to 100
#8

Updated by Yannick Warnier over 3 years ago

  • Status changed from Needs testing to Bug resolved

Cerrando (considerando que está en el wiki)

Also available in: Atom PDF