Upgrade from symfony 1.0.11 to symfony 1.0.22 - symfony1

I want to update symfony 1.0.11 to symfony 1.0.22. I am using php 5.1.6. Do I need to do any upgrades in my symfony code level as well? Or just upgrading the symfony library will do the trick for me?

You may have to change some symfony function depend on deprecated function and removed functions.
To be safe, backup your symfony project, just in case.

Related

Is it possible to disable Sass in Rails 6?

I work in a completely air-gapped environment in which I would love to use Ruby on Rails. I have the ability to cache dependencies for offline use in Nexus. The problem I'm having is that after I've cached all my dependencies for Rails 6 (including the NodeJS ones), node-sass is unable to install because it attempts to download a file from GitHub.
I'm completely fine without using a CSS pre-processor, and would much rather deal with vanilla CSS than deal with this dependency headache. Is it possible to disable just Sass support when creating a new Rails app? I'm able to use --skip-javascript to disable all javascript support, but since all the other dependencies are able to be installed, it would be a shame to have to disable them just because node-sass can't be installed offline. Is there an option like that for Sass?
I'm aware I could manually copy the .node file from the GitHub release page, however, I'm trying to make this process as minimalistic and automatable as possible.
I'm working with Fedora Linux if that's relevant.
Any help is appreciated.
Yes, I think --skip-sprockets option will disable Sass. You can also disable webpacker using --skip-javascript.
You may try below command.
rails new green-forest -S -J

Installing react-redux in a Rails project

I am building a React app in Rails and would like to try react-redux. I noticed that it doesn't offer a CDN nor a bower package.
The installation instructions recommend using NPM, but this is not a node project. I handle all my current assets through the Rails asset pipeline, a CDN or a bower package (via rails-assets)
Is there a way to install it without using NPM?
Is there a way to get NPM packages to play nice with existing asset pipeline packages?
You can also check out https://github.com/shakacode/react_on_rails. It's integrated with webpack which gives it a nice and familiar javascript flow.
They've also got a live example at http://www.reactrails.com/ and the code for that at https://github.com/shakacode/react-webpack-rails-tutorial.
I found that it is possible using react-rails in conjunction with browserify-rails. This blog article explains it pretty well.
Just run the command yarn add redux react-redux
This will add redux and react-redux to dependency as well as connect react to redux.
I am using rails 6 and it works fine with this.
add ruby related lib via bundle add and js related lib via yarn

Grails Wrapper: run/re-run before or after change version?

I tried looking for the answer for this here but couldn't find it. If this is documented somewhere, please send the link as a comment and I'll delete the question.
I can't figure out the proper order for using Grails Wrapper when upgrading an app version:
Do I run grails wrapper and then change application.properties to the new version of Grails, and then execute all future commands using grailsw?; or
Do I change application.properties to the new version, then run grails wrapper, and then run all future commands with grailsw?
Running grails wrapper will download the version of the wrapper specified in application.properties, so you should run it after changing the version.

Symfony - Propel - Determine current version of propel

Is there a better way of determining which version of Propel that Symfony 1.4 is built upon? Right now I am having to do:
$ -> ack -i version /path/to/symfony/lib/plugins/sfPropelPlugin/lib/vendor/
And as of now I am seeing this:
/path/to/symfony/lib/plugins/sfPropelPlugin/lib/vendor/propel-generator/default.properties
19:propel.version = 1.4.2
So I am assuming that Symfony v1.4.16 is using Propel version 1.4.2.
At this time, propel bundled with Symfony 1.x does not support the ability to determine the version, cleanly, via cli, however you can use the ack or fgrep command as I stated in OP. But if you use the sfPropelORMPlugin plugin, which allows you to use propel 1.6 with Symfony 1.x, they have opted to add this functionality, which I assume will be available soon. https://github.com/propelorm/sfPropelORMPlugin/pull/152

Migration Symfony 1.2.1 -> 1.4.11

At what should I need to be careful when I migrate a project made in with Symfony 1.2.1 to Symfony 1.4.11 ?
You should follow the instructions here: http://www.symfony-project.org/tutorial/1_4/en/upgrade
There is a validator which you can run on your code that will tell you which files have code that needs to be changed. Also, remember since you want to go from 1.2.1 -> 1.4.11, you will first need to upgrade to 1.3. So you would run:
$ php symfony project:upgrade1.3
and then switch to 1.4.

Resources