#Heroku set configs from files
-
Export your configs from Heroku in "shell" format to file:
$ heroku config -a <app_name> -s > .env-<environment_name(production, staging, ...)> -
Copy this script to a file
| mkdir lib | |
| cd lib | |
| wget http://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.10.4/PyQt-x11-gpl-4.10.4.tar.gz | |
| tar xvf PyQt-x11-gpl-4.10.4.tar.gz | |
| cd PyQt-x11-gpl-4.10.4/ | |
| python configure.py | |
| make && make install | |
| mkdir ~/neo4j | |
| mv neo4j-community-2.0.1-unix.tar.gz ~/neo4j/neo4j-community-2.0.1-unix.tar.gz | |
| cd ~/neo4j | |
| tar -xzf neo4j-community-2.0.1-unix.tar.gz | |
| cp neo4j-community-2.0.1 <graph-name> | |
| git clone git://github.com/neo4j/spatial.git spatial | |
| cd spatial | |
| mvn clean package -Dmaven.test.skip=true install | |
| unzip target/neo4j-spatial-0.11-SNAPSHOT-server-plugin.zip -d ~/neo4j/<graph-name>/plugins/ | |
| ~/neo4j/<graph-name>/bin/neo4j start |
#Heroku set configs from files
Export your configs from Heroku in "shell" format to file:
$ heroku config -a <app_name> -s > .env-<environment_name(production, staging, ...)>
Copy this script to a file
On a recent project, I ran into an issue with Python Selenium webdriver. There's no easy way to open a new tab, grab whatever you need and return to original window opener.
Here's a couple people who ran into the same complication:
So, after many minutes (read about an hour) of searching, I decided to do find a quick solution to this problem.
One of my automated process starts dynos when he feels he need more juice in the pipes. But, while running tests, something failed and just kept 10 or more dynos running. It's a pain to stop those manually.
Here's a simple command line that can be executed to stop all running dynos except those initiated at runtime or in via the Procfile.
heroku ps -a <HEROKU_APP> | grep -o -P '(run\.[0-9]+)' | while read line ; do heroku ps:stop $line -a <HEROKU_APP> ; done