Symfony - Composer installed maker-bundle and forgot --dev [closed] - symfony

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I installed the maker-bundle like this:
composer require symfony/maker-bundle
I forgot to add --dev so it only installs for the dev environment. How can I fix that? Is it as easy installing it again like this?
composer require symfony/maker-bundle --dev
Or something like in composer.json move this into the "require-dev" section?
"symfony/flex": "^1.2",
"symfony/maker-bundle": "^1.20"
I'm not sure how to fix this? Thanks.

What you should probably do, is remove the bundle, and then install it again with --dev.
Removing:
composer remove symfony/maker-bundle --update-with-dependencies
Installing:
composer require symfony/maker-bundle --dev

Related

NGINX command not found [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
NGINX was built from source using the latest stable build on a debian 9 server. sudo nginx command cannot be found. The NGINX install is located in /usr/local/nginx. How can I configure my server to follow the standard sudo nginx [command] rules? I have tried adding PATH=/usr/sbin/:$PATH which did not work since NGINX is not located in sbin. Thanks
Run echo $PATH Does it contain /usr/local/sbin?
If not then add PATH=/usr/sbin/:$PATH to your .profile file.
Also, check that nginx is installed in /usr/local/sbin, by going into this directory.
If not then install it by using following commands:
sudo apt update
sudo apt install nginx

Best boilerplate for Meteor project? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
Just started using meteor and built the first app using the to-do app tutorial.
Now I plan to use meteor for a project with bootstrap, is there a standard boilerplate available for this which gives me a file structure to work with ?
My app has a small to medium level of sophistication.
You could use Yeoman, a web scaffolding tool, to generate your Meteor projects.
Run npm install -g yo to install Yeoman.
Run npm install -g generator-meteor to install the Meteor generator.
Run mkdir new-meteor-project && cd $_ to create a new project directory.
Finally, run the Yeoman Meteor generator: yo meteor.
This generator is able to include Iron Router and Bootstrap:
$ yo meteor
_-----_
| | .--------------------------.
|--(o)--| | Welcome to Yeoman, |
`---------´ | ladies and gentlemen! |
( _´U`_ ) '--------------------------'
/___A___\
| ~ |
__'.___.'__
´ ` |° ´ Y `
? Shall we include Iron Router? Yes
? Shall we include Bootstrap? Yes
create client/client.js
create client/lib/subscriptions.js
create client/views/home.js
create client/views/home.html
create client/views/common/loading.html
create lib/collections.js
create public/robots.txt
create server/publications.js
create server/server.js
create server/security.js
create .meteor/.gitignore
create .meteor/release
create .gitignore
create .jshintrc
create .travis.yml
create .editorconfig
create LICENSE
create README.md
create client/routes.js
create client/views/layout.html
create client/styles/theme.css
create .meteor/packages
If this generator does not meet your needs, you may want to search for another one.

bal-util grunt with docpad [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I have some trouble with the spawn function in bal-util. I tried this example and the extended version from this docpad skeleton, but I get the same error every time:
error: An error occured:
Error: spawn ENOENT
at errnoException (child_process.js:980:11)
at Process.ChildProcess._handle.onexit (child_process.js:771:34)
→ [2013-06-01 14:03:27.698] [C:\Users\USERNAME\AppData\Roaming\npm\node_modules\docpad\out\lib\docpad.js] [DocPad.log]
I have the grunt-cli installed.
I use the following versions:
grunt - 0.4.1
bal-util - 2.1.0
How could I fix it, to run grunt properly?
That example uses an older version of Grunt, 0.3.17. In order to use with the latest version of Grunt, 0.4.1, it looks like you'll need to do the following:
Rename grunt.js to Gruntfile.js.
npm install grunt-cli grunt --save-dev
Change grunt.registerTask('default', Object.keys(gruntConfig).join(' ')); to grunt.registerTask('default', Object.keys(gruntConfig));
...and probably more stuff.
Typically you install npm install grunt-cli -g globally to access the grunt command. Since that example has docpad spawning grunt locally, step 2 has you install both locally placing the grunt command at node_modules/.bin/grunt.
I recommend reading up on the DocPad and Grunt docs. Also a shameless plug to one of my own modules for using DocPad with Grunt: https://github.com/shama/grunt-docs and an example Gruntfile.js that uses it: https://github.com/shama/dontkry.com/blob/master/Gruntfile.js

How can I install the Buzz bundle on Symfony 2.2.0?

I want to install the Buzz bundle. On GitHub, the installation instructions suggest the .bin/vendors install method. However, that's not supported in Symfony 2.2.0.
Is there another way I could install the bundle? I've been trying to install it using Composer, but without any luck.
Try adding in composer.json under require key:
"sensio/buzz-bundle": "dev-master"
Then follow the instructions from step3 onward
You'll also need to run composer.phar update after that.
And for future reference, lookup the package you need on packagist.org. You'll find there what you need to put in composer.json

How can I setup Plone 4.0.7 for Diazo? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I would like to know the correct steps to setup Diazo in a Plone 4.0.7 installation.
Thanks in advance.
Alano
plone.app.theming is not supported on Plone 4.0. You should use Plone 4.1.
First, upgrade to Plone 4.1.
Then you can use plone.app.theming if you add the KGS to your buildout:
http://good-py.appspot.com/release/plone.app.theming/1.0b8?plone=4.1rc3
In practice, that means editing your buildout.cfg file as follows. Add plone.app.theming to your instance eggs:
[instance]
eggs += plone.app.theming
And update the [versions] section as follows. Either include all the version pins:
# Known good set for plone.app.theming version 1.0b8
# The latest version can be found at
# http://good-py.appspot.com/release/plone.app.theming/1.0b8?plone=4.1rc3
[versions]
AccessControl = 2.13.4
Acquisition = 2.13.7
ClientForm = 0.2.10
DateTime = 2.12.6
…
Or extend the good-py config:
[buildout]
extends = http://good-py.appspot.com/release/plone.app.theming/1.0b8?plone=4.1rc3
versions = versions
Then follow the plone.app.theming and diazo instructions:
http://pypi.python.org/pypi/plone.app.theming/1.0b8
http://diazo.org

Resources