Skip to content
This repository was archived by the owner on Apr 12, 2025. It is now read-only.

Deploying on a server without bower #121

@christheyounger

Description

@christheyounger

My host doesn't have node.js. I simply dump assets locally (where i have node, bower, grunt, etc) and push the finished product up (a combined and minified js file).

I thought it would work well to push up only the compiled, minified js file to the production server where only the production version of Symfony is executed - except that when I run the application on the production server - I get a 503, because the source js / css files were not found.

{% javascripts output="js/scripts.min.js" filter="?uglifyjs"
'@MyBundle/Resources/src/js/jquery.js'
'@MyBundle/Resources/src/js/bootstrap.js'
'@MyBundle/Resources/src/js/site.js' %}
<script src="{{asset_url}}"></script>
{% endjavascripts %}

In the end I've had to also upload all the source files so that Symfony can check that they are there, and then ignore them and use the compiled version.

Am I going about this the wrong way? Or does this whole methodology need more thought?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions