heroku-cli

Deploy ng-2 admin Angular 2 to heroku

会有一股神秘感。 提交于 2019-12-06 18:50:26
I'm trying to deploy my project based on ng2-admin .the Build succeeded but whe i launch heroku open to run the project i got : Application error An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. Here is the logs: remote: Compressing source files... done. remote: Building source: remote: remote: -----> Node.js app detected remote: remote: -----> Creating runtime environment remote: remote: NPM_CONFIG_LOGLEVEL=error remote: NPM_CONFIG_PRODUCTION=true remote: NODE_VERBOSE=false remote: NODE_ENV=production remote

Get IP of Heroku dynos

ε祈祈猫儿з 提交于 2019-12-06 10:53:38
问题 I have a Heroku app making some API calls to an external service. There are some issues and the service wants to know what IPs are making the calls. A lot of the basic tools like ifconfig , traceroute , netstat , etc don't exist on the machines. Looks like they are running a very barebones version of Ubuntu 14.04.5. I was able to use heroku ps:exec -a <myapp> to SSH into my app and use ip addr but there are some problems: 1) It appears that this only allows me to SSH into the web.1 dyno (and

“Couldn't find that app.” when running heroku commands in console

对着背影说爱祢 提交于 2019-12-05 22:15:28
I'm trying to run commands for my heroku app in my console, but it keeps telling me "Couldn't find that app." even though when I run heroku apps in my console it tells me I have one app called worldofwarcraft-api So heroku recognizes my app in the apps list, but I can't run any commands to access it. The line I want to run is heroku ps:scale web=1 --app worldofwarcraft-api I'm trying to troubleshoot why my API returns a 503 when I try to make a GET request to it. This is the fix the heroku faq told me to try, but it's just telling me it can't find my app. I'm wondering if it has something to

How to kill an heroku build that is in progress?

假装没事ソ 提交于 2019-12-03 09:41:03
问题 I accidentally pushed a build that does an npm install in the postinstall script. This has led to my heroku app being stuck in an infinite install loop. I searched the heroku documentation on how to kill builds but came up blank. The closest thing I found was https://help.heroku.com/Z44Q4WW4/how-do-i-stop-a-release-phase and I tried killing as per those instructions but my build won't die :( 回答1: The heroku-builds CLI plugin has a builds:cancel command which will stop a running build. All

How to avoid the --app option with heroku CLI?

流过昼夜 提交于 2019-12-02 10:17:13
I'm tired of entering the name of my app each time I run a heroku command in the terminal: heroku run rake db:migrate --app myapp heroku run rake db:seed --app myapp heroku run rake sth:else --app myapp The --app is very redundant and annoying, I didn't figured out where were the option to configure it globally once for the project. heroku doesn't require the --app argument when it knows which app it should talk to. This occurs when there is exactly one Git remote pointing to Heroku for a repository. You don't appear to have any remotes pointing to Heroku. Run heroku git:remote --app myapp to

How to avoid the --app option with heroku CLI?

。_饼干妹妹 提交于 2019-12-02 10:06:19
问题 I'm tired of entering the name of my app each time I run a heroku command in the terminal: heroku run rake db:migrate --app myapp heroku run rake db:seed --app myapp heroku run rake sth:else --app myapp The --app is very redundant and annoying, I didn't figured out where were the option to configure it globally once for the project. 回答1: heroku doesn't require the --app argument when it knows which app it should talk to. This occurs when there is exactly one Git remote pointing to Heroku for

Heroku CLI unresponsive on Ubuntu 16.04

点点圈 提交于 2019-12-01 12:45:44
I'm trying to get heroku cli installed on Ubuntu 16.04, following the documentation here: Heroku CLI Documentation and while my system appears to install it correctly, whenever I try any Heroku commands like heroku login the terminal hangs, and becomes unresponsive. I'm not getting any error codes. Here's what I've tried: I've tried installing heroku via the following methods: wget -qO- https://cli-assets.heroku.com/install-ubuntu.sh | sh That didn't work, I uninstalled and tried this: sudo snap install heroku --classic That did't work, I uninstalled and tried this: wget https://cli-assets

ImportError: No module named 'decouple' while deploying on Heroku

偶尔善良 提交于 2019-11-30 15:43:15
I was trying to deploy my django project on heroku from heroku cli. So I created an app and then I ran git push heroku master from the project directory. Then I got the errors: remote: -----> $ python manage.py collectstatic --noinput remote: Traceback (most recent call last): remote: File "manage.py", line 15, in <module> remote: execute_from_command_line(sys.argv) remote: File "/app/.heroku/python/lib/python3.5/site-packages/django/core/management/__init__.py", line 371, in execute_from_command_line remote: utility.execute() remote: File "/app/.heroku/python/lib/python3.5/site-packages

ImportError: No module named 'decouple' while deploying on Heroku

倖福魔咒の 提交于 2019-11-29 23:19:27
问题 I was trying to deploy my django project on heroku from heroku cli. So I created an app and then I ran git push heroku master from the project directory. Then I got the errors: remote: -----> $ python manage.py collectstatic --noinput remote: Traceback (most recent call last): remote: File "manage.py", line 15, in <module> remote: execute_from_command_line(sys.argv) remote: File "/app/.heroku/python/lib/python3.5/site-packages/django/core/management/__init__.py", line 371, in execute_from

How to clean cache in heroku after installing dependencies?

笑着哭i 提交于 2019-11-29 02:44:16
Topic : Heroku Problem : After installing my node js application in heroku, I made some changes in package.json. Now, when I am trying to push changes again, new dependencies are not getting installed. Heroku is picking the dependencies from cache. How to disable cache in heroku ? Anurag Singh Bisht Thanks all for responding. After much googling and spending time on my issue, I was able to solve my problem. I thought it would be better to post an answer if anyone faces the similar dilemma. Below is the documentation, where I found my answer https://devcenter.heroku.com/articles/nodejs-support