I have a Symfony2 application that I would like to deploy using Capistrano3. Performing cap install creates a config directory in the projectroot. To keep my project clean, I would like it to install the config dir into something like app\config\capistrano. Is this possible? I cannot find any hints in the documentations.
Found the anwser in a pull request on Github.
Enter the following two lines to your Capfile, before capistrano\setup beign called.
set :deploy_config_path, 'app/config/deploy.rb'
set :stage_config_path, 'app/config/deploy'
`
It is implemented in the 3.1.x branch
Look at your Capfile and change the path to the config file. This should be enough.
Related
Nexus OSS 3.7.1-02 running on RHEL 7. I have several repositories on it and I am able to publish and retrieve packages and jars, therefore, I presume that the setup is working correctly.
In the official documentation, I am referring to the 'Serving SSL Directly' section which uses the embedded Jetty server for serving https connections.
I am unable to find the file '$install-dir/etc/org.sonatype.nexus.cfg' mentioned in the documentation and there are a couple of config. around this file. I executed a find command for that file on the root directory but the file doesn't exist at all.
Another confusing step is:
Edit $install-dir/etc/org.sonatype.nexus.cfg. Change the nexus-args
property comma delimited value to include
${karaf.etc}/jetty-https.xml.
Now there's neither any directory under the 'karaf' directory nor does the file exist there but I found one jetty-https.xml file under nexus-3.7.1-02/etc/jetty.
How shall I proceed?
That isn't the official documentation, it's the documentation for "3.0". The official documentation is here: https://help.sonatype.com/display/NXRM3 (unversioned).
Specifically, I suspect you're looking for this: https://help.sonatype.com/display/NXRM3/Configuring+SSL.
Anyway, that file was replaced in an older version.
It now resides in ${data-dir}/etc/nexus.properties.
Kibana being installed, I'm trying now to configure it correctly. I have a question : is there a way to modify Kibana's default data path. For example, you can modify log path by changing logging.dest var value within the file "/etc/kibana/kibana.yml" but this file doesn't contain any var for changing data path. I already looked within their official documentation but I found nothing...
In the meantime, if you have any advices concerning Kibana's installation and configuring, I'm totally listening...
Thank you all for your answers :)
Can do that by updating the "path.data" value in the config file "kibana.yml"
path.data: "new path for data"
location for config file is /etc/kibana/kibana.yml for rpm install for tar/zip install it will be in config folder.
DATA_PATH=/data /opt/kibana-5.2.0/bin/kibana
I am trying to set up my symfony 2.8 app for local development.(Following - https://symfony.com/doc/current/deployment/heroku.html)
Added In proc file
web: bin/heroku-php-apache2 web/
Error
bin/sh: vendor/bin/heroku-php-apache2: No such file or directory
Also note , composer.phar config bin-dir is bin
Anyone who can share how they resolved this problem?
First of all, have you tried letting heroku create the Procfile itself? I think lately it was smart enough to work out the root of the Symfony project.
If that doesn't work, maybe that's not the right path, try:
echo 'web: $(composer config bin-dir)/heroku-php-apache2 web/' > Procfile
If none of those work, I'd rather use the heroku information on how to deploy your Symfony app, have a look at this and see if it helps:
https://devcenter.heroku.com/articles/getting-started-with-symfony
How do I set up framework.ide config value so that it properly links to files in PhpStorm, when the code is run from Vagrant?
I've tried phpstorm://open?file=%%f&line=%%l
but it gives me Vagrant paths, like:
phpstorm://open?file=/vagrant/src/AppBundle/Controller/DefaultController.php&line=27
while I should be getting host paths, like:
phpstorm://open?file=/Volumes/my_project_volume/project_name/src/AppBundle/Controller/DefaultController.php&line=27
I guess the solution would be to somehow configure path mapping, either in Symfony or in PhpStorm.
Regarding symfony's official documentation:
https://symfony.com/doc/current/reference/configuration/framework.html#ide
you can use (from symfony 3.2) something like this:
ide: 'phpstorm://open?file=%%f&line=%%l&/path/on/vagrant>/your/local/path/'
For a project relative directory:
framework:
ide: 'phpstorm://open?url=file://%%f&line=%%l&/path/in/server>%kernel.project_dir%'
When working with Docker and with Mac, and your project is hosted in your user folder, the configuration has to slightly get changed as well.
framework:
ide: 'phpstorm://open?file=%%f&line=%%l&/app/>/Users/your-username/PhpstormProjects/your-project-folder/'
Please note that
/app/ is the path inside the Docker container,
using ~/PhpstormProjects as alias to the home directory is something PHPStorm does not seem to support
im trying to install PhantomJS in a MeteorApp.
I have done those step:
Add the npm package
meteor add meteorhacks:npm
Run meteor to let the npm package to pre-initialise
meteor
A file packages.json has been created at the root. Edit it to:
{
"phantomjs": "1.9.13"
}
A this point everything seem to work. But i try to test with this exemple that ive found here :
https://github.com/gadicc/meteor-phantomjs
But i dont understand where to put my phantomDriver.js
Why is phantomDriver.js is in assets/app/phantomDriver.js... but after, they say to create the file in ./private/phantomDriver.js...
Thank for clear explication :)
In development mode you create the file in /private/phantomDriver.js. When you build a meteor app it refactors everything into an application bundle which can be run.
After meteor builds your app it stores stuff from private into assets. For phantomjs to execute this file it needs to look in this directory. You don't have to create it. This is how meteor works internally.
If you look in your .meteor/local/build/programs/server directory the assets directory is there with anything you placed in private.
From the context of where your meteor code runs (the server directory above) the assets directory runs from this directory when your project is running.
Keep in mind when you deploy your app it loses its entire project structure and becomes something else. Gadi's phantomjs project is designed to work in production environments too.
TLDR; Don't worry about the assets directory, keep your file in /private/phantomDriver.js. Meteor should take care of the rest.