I have a symfony project. It's not mine. I wanna to understand the version in which the project is written. It do not seem to be a 2.0 version.
The project folder structure is this:
-test
-plugins
-nbprojects
-log
-lib
-data
-config
-cache
-apps
-.git
files
-test.txt
-symfony
-kill.sh
-index.html
-ftp.sh
-ftp_1.sh
-ftp_2.sh
data.txt
another
.readme_notes.swo
Any idea of which version of Symfony this is and how to do in order to start modify this project?
I'm not sure why You want to recognize symfony versions, but you can for e.g check:
for symfony 1.x - index.php file in web folder
symfony 2.x.x - app.php file in web folder
Looks like a symfony1 project.
To have a precise idea of the version, as #cpntk said, once in the project directory, just run:
php symfony --version
Related
I have an AngularJS project that was scaffolded using yeoman. I want to use ctags to generate tags for the whole project so that I can navigate the code in vim. But when I use the command
ctags -R .
in the root folder, it generates tags for folders at one or two levels deeper relative to root. The folders at 5-6 levels deeper are not tagged by ctags. How can I get it to work for the whole project?
I am using exuberant-ctags for generating tags.
OS : Ubuntu 15.04
Do you get the same results with the following?
ctags -R *
What OS? Have you verified it's NOT a permissions issue?
ctags uses the file extension to correctly choose the parser that it will use to generate the tags file. It's possible that the files you are not finding have an unsupported extension.
Another possibility is that those files are using language extensions not supported by Exuberant Ctags. In which case you might want to try Universal Ctags, which was forked from Exuberant and is in active development. It is possible that the JS parser was improved in this fork of ctags.
I want to make Dart app that has flexible deployment. It can be started as a web server or standalone app in browser as well. My directory structure:
bin
- httpserver.dart
lib
- commonlib.dart
web
- web.html
- web.dart
pubspec.yaml
I wanto start either httpserver.dart providing web's content or web.html directly in Chromium. I have troubles with the lib visibility from bin/httpserver.dart. using the "import 'package:prj/commonlib.dart'" does not work. But from the web.dart is works fine.
Please advice how to share libs among bin's and web's code. Or I should I make structure of dirs somehow different?
Note: there is no packages sub-dir in the bin directory created by pub get. I am using dart sdk 1.7.2.
Thank you, Ladislav.
In the bin directory there should be a packages symlink created automatically but it is not in subdirectories of prj/bin. If the symlink isn't created just create it manually.
I want to know the versions of the software used while developing the project, Suppose If there is an existing project In grails ,so I want to know the version of grails as well as version of Groovy for that project
Metadata regarding a project in Grails is kept in application.properties.
Within this file you will find the version of Grails used for the project under the key app.grails.version.
The version of Groovy used however is not kept in this file and is determined by the version of Grails being used. To determine the version of Groovy used by a specific version of Grails visit the introduction section of the Grails documentation.
edit
As pointed out in another answer, if you have target version of Grails already downloaded you can search for the version of Groovy being used by that version of Grails.
*nix
$ cd grails-X.X.X
$ find . -name "groovy*jar"
win32
> cd grails-x.x.x
> dir /s "groovy*.jar"
From controllers/services:
def appVersion=Metadata.current.'app.grails.version'
def appName=Metadata.current.'app.name'
From gsp:
App Version <g:meta name="app.version"/>
Built with Grails <g:meta name="app.grails.version"/>
Added extra information to figure out a grails application version from raw text files :
If you have a grails 3 application, you should find a build.gradle in the main root of your application folder:
version "0.1" According to this grails 3 project the version of this application is 0.1
Grails version is 3.1.1 according to gradle.properties
On a grails 2 project you will find application.properties in the main project root:
According to this grails 2 project
grails version is 2.4.4
App version is 0.1
If you already have a project and want to learn which grails version it uses. You can find it in gradle.properties file.
The content of the file is like the following
grailsVersion=4.0.1
gorm.version=7.0.2.RELEASE
As of Grails 3, this is:
Version <g:meta name="info.app.version"/>
Notice the info.
http://docs.grails.org/3.0.17/ref/Tags/meta.html
use application.properties in the root of the grails application
To find out which version of groovy is used with particular version of grails I always use simple find:
$ cd grails-X.X.X
$ find . -name "groovy*jar"
Maybe I'm just too lazy to dig into websites... ;-)
You can see application name,grails version,application version from application.properties file of grails project
I face the same issue, I found simplest way to find version by simple command.
run
grails clean
then it prints
Welcome to Grails 1.3.7 - http://grails.org/
For some reason, when I create my project, the .project file is missing. Which command creates this file?/Why is it missing from my project directory?
This file is created by your IDE. Likely Aptana. It is not required to run rails and usually ends up on my .gitignore file if I am working with others who use Aptana.
Running rails new foo from the CLI doesn't create that file. As #Gazler said, it's created by your IDE. Most likely Aptana or Eclipse, as that IDE uses .project files.
i have a directory with some .php files in it...do i need to install symfony in that directory so that i can run symfony commands from that directory?? i tried: pear channel-discover pear.symfony-project.com
and got:
Channel "pear.symfony-project.com" is already initialized
the i tried: pear install symfony/symfony
and got:
WARNING: configuration download directory "/build/buildd/php5-5.3.2/pear-build-download" is not writeable. Change download_dir config variable to a writeable dir to avoid this warning
Cannot install, php_dir for channel "pear.symfony-project.com" is not writeable by the current user
how do i fix this please? must i run it as sudo??
thanks
If I remember well, Symfony is "system-wide" if installed through PEAR (like you are trying to do).
Now it is recommended by the manual to do a "standalone" install through SVN. See http://www.symfony-project.org/gentle-introduction/1_4/en/03-Running-Symfony
As well, the sandbox will bring a "standalone" installation of Symfony (you will have to be in the project root directory to be able to run the symfony commands)
EDIT
Example of quick install using SVN:
mkdir /path/to/symfony
cd /path/to/symfony
svn checkout http://svn.symfony-project.com/tags/RELEASE_1_4_0 .
but it should be better to follow the manual and configure the external SVN sources.
I run servers where I have applications that use different versions of symfony simultaneously. I found it much easier to deal with the SVN checkout than the PEAR insteall.
So what I've done is do an SVN checkout of each revision that I need
into it's own folder. In my case i check them out to
/usr/share/symfony/(version)
Then I configure the ProjectConfiguration.class.php to reference whatever version is needed, using the line:
require_once '/usr/share/symfony/1.x.x/lib/autoload/sfCoreAutoload.class.php';
If I need to switch to a different symfony version, I can just change that config.
That is, assuming all my code is compatible with that version