This repository was archived by the owner on Apr 12, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 43
Deploying on a server without bower #121
Copy link
Copy link
Open
Description
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?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels