-
-
Save jarib/3d443c0fdd720f9f0835 to your computer and use it in GitHub Desktop.
#!/bin/bash | |
set -e | |
git clone https://github.com/edsu/anon my-anon | |
cd my-anon | |
cp config.json.template config.json | |
read -p "Please add your config to $(pwd)/config.json, then press enter to continue" | |
heroku create | |
echo 'web: coffee anon.coffee' > Procfile | |
git add Procfile config.json | |
git commit -m "Added Procfile and config" | |
git push heroku master |
There is a missing e and a extra ' in the Procfile. Guessing it should look like 'web: coffee anon.coffee'
@lokal-profil Thanks, fixed!
@lokal-profil maybe you have experience wit deployng to heroku? I think now I have problems that I want to run anon on only 1 dyno and getting application run errorr.
Same here with heroku. Apart from the fact that you are required to upgrade to cedar-14 from cedar-10, or else you can't push your code, you now get an Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
Being a beginner in coffee scripts, I can't find where and if I should assign a port.
Edit: Got it. When in Windows echo 'web: coffee anon.coffee' > Procfile
adds the line in the Procfile with quotations. This means that it defaults to npm start
, which creates a web worker. Removing the quotes and making Procfile read worker: coffee anon.coffee
allows you to run heroku ps:scale worker=1
and avoid the error.
That still doesn't solve the dependency issue with ../node-icu-charset-detector.cpp:7:28: fatal error: unicode/ucsdet.h: No such file or directory
, but that doesn't seem to stop it from working.
Now, I don't know how that would work with the new Dynos, since I'm not willing to test it, but if anyone has any ideas, that would be helpful.
Trying to upgrade my instance of anon on heroku I also ran into the Error R10 (Boot timeout) issue.
Apart from making Procfile specify worker
I had to manually go to the heroku dashboard and set turn off the web
dyno and turn on the worker
dyno (since heroku ps:scale worker=1
) now triggers a question about credit cards.
Thanks, updated. I guess you also need to commit
config.json
for it to work, so I added that as well.