command-line-interface

Heroku's Windows toolbelt and LD_LIBRARY_PATH

江枫思渺然 提交于 2019-12-11 02:29:53
问题 I'm deploying a PHP application on Heroku and I need to run some tasks using CLI. In order to do that I have to set LD_LIBRARY_PATH env variable using this command: heroku config:add LD_LIBRARY_PATH=/app/php/ext:/app/apache/lib but every time I do it toolbelt overrides the command and the variable points to C:\Program Files (x86)\Git\app\php\ext;C:\Program Files (x86)\Git\app\apache\lib . Obviously it's not okay. Does anyone have any ideas how to do this in proper way? 回答1: 5 days passed and

LG WEBOS : Could not connect to the device, please check the device connection

徘徊边缘 提交于 2019-12-11 02:24:33
问题 I've followed everything here step by step : App Testing on webOS TV But I still can't seem to connect using either the webOS CLI or the webOS IDE. I get the following error: Via the IDE : Could not connect to the device "name", please check the device connection. Via webOs CLI : ares-install ERR! ares-install: Error: Please check the device IP address or port. I see the device listed : ares-setup-device --list emulator developer@127.0.0.1:6622 ssh tv lgtv_ prisoner@10.188.20.165:9922 ssh tv

How to publish a prod build of our VSTS extensions package to my dev VSTS (not prod VSTS), so I can validate it before publishing to prod VSTS? [duplicate]

南楼画角 提交于 2019-12-11 01:46:50
问题 This question already has an answer here : How to test new Azure DevOps extension version before publishing it for everyone (1 answer) Closed 7 months ago . I want to take the package as-built by the release line , and install it to another (non-prod) VSTS, so I can validate it works, before installing to our prod VSTS. We use VSTS vNext build with VSTS task 'Package Extension' to compile the package. This compiles 'Publisher' with value 'my-prod-publisher' into file 'extension.vsixmanifest'

Error when updating Heroku CLI: write lock exists: update

让人想犯罪 __ 提交于 2019-12-11 01:46:42
问题 I am trying to update the Heroku CLI, however, without success. Current version of Heroku CLI is heroku-cli/6.15.5-1f03166 (win32-x64) node-v9.3.0 When running heroku update I get the following error C:\>heroku update CLI is updating... ! ! 'ELOCK': write lock exists: update I didnt' find any solution to this problem so far as I am hesitating to just uninstall and re-install the Heroku CLI (all my configs are lost then). 回答1: I solved this problem by uninstalling heroku and installing via

How to invoke the Cucumber runner class from a different main method

白昼怎懂夜的黑 提交于 2019-12-11 01:43:45
问题 I'm new to using Command Line Interface. So I just have a question on how to invoke the runner class of the cucumber using CLI technique. I have a Java program which contains a main method. When testers pass the argument which is test case, it will fetch the feature file. The java program invoke a custom made API which will fetch the correct feature file. Next I'll have to invoke the Cucumber runner class to execute the test case. I need to pass this particular feature file as the argument.

Entry Points in setup.py

两盒软妹~` 提交于 2019-12-11 01:38:58
问题 I am making a CLI in python using Click. This is my entry point script: entry_points=''' [console_scripts] noo=noo.noodle:downloader ''', I have made a Package, I have added import noodle in the __init__.py file so that it could import the file noodle which contains the function downloader() - which needs to be executed by the entry_point script. But when I install the setup.py , I get an Error: ImportError: No module named noo.noodle when I run noodle --help in terminal? 回答1: Directly from

How do I save a report to a new location every time I run a testrunner script in CLI - SOAPUI

时间秒杀一切 提交于 2019-12-11 01:35:40
问题 I am running a script through testrunner CLI through a Jenkins build. I want the result's saved to a new folder for each run. How do i do it? testrunner.bat -r -j -J "-fC:\Users\xxxxxx\Desktop\Reports\xxx\xxx" "-RProject Report" "-EDefault environment" -I "C:\TCOE\Automated_Smoke_and_Regression_SoapUI_Tests\xxx\xxx_PRODUCTION-soapui-project.xml" Right now the script looks like the above pasted one. Where I declare the root location for the report explicitly. What do I do to ensure each run

mingw C program with setup in its name won't run (windows 7)

若如初见. 提交于 2019-12-11 01:27:04
问题 I've written the classic 3 line "Hello World" in C: #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <strings.h> #include <string.h> int main(int argc, char **argv) { printf("Hello World!\r\n"); exit(0); } Compile on linux targeting win32: i686-w64-mingw32-gcc -o helloWorld.exe -g -march=i586 helloWorld.c Move the hellowWorld.exe to windows 7 machine, runs fine ... Now, I rename it to anything with 'setup' in the name, like hellosetupWorld.exe and UAC fires when I try to

Running “webpack” instead of “node_modules/.bin/webpack”

匆匆过客 提交于 2019-12-11 01:19:39
问题 I'm using to run " node_modules/.bin/webpack ", but I know it's possible to configure the path so that you only have to type " webpack ". I can't find how, though. :/ 回答1: That would happen if you install a package globally. For webpack that would be with the command npm install -g webpack . npm in that case would install Webpack in a set location you can find with npm root -g . If that location is in your $PATH , you can use webpack directly on your command line. Do not do that! You would

CodeIgniter is_cli_request() returns false when run from cronjob

佐手、 提交于 2019-12-11 00:56:56
问题 Here is my cronjob's command php /home/toolacct/public_html/index.php cronjob fetch_emails Here is my CodeIgniter cronjob controller class Cronjob extends CI_Controller { function __construct() { parent::__construct(); die($this->input->is_cli_request()?'T':'F'); $this->load->model('cronjob_model'); } public function fetch_emails() { $this->cronjob_model->fetch_emails(); } public function index_popularity() { $this->db->query('CALL update_email_data_popularity()'); } } The cronjob says "F"