deploy dancer via heroku - error while loading /app/app.psgi
As an experiment that should bring me on the path to use dancer I tried to deploy an app via Heroku (with my regular hosting I have no luck). For Dancer (meaning 1) I found a blog that wrote positive about this (http://damog.nl/blog/deploying-a-dancer-app-on-heroku.html) and I found a gist.github (https://gist.github.com/ysasaki/3149659). As I tried to take the same steps as mentioned on these pages I wasn’t getting to the expected result -1- create app `dancer -a Foobar` -2- `cd Foobar` -0- ln -s ./bin/app.pl app.psgi (with or without ?) -3- git init -4- git add -5- git commit -6- heroku create --stack cedar --buildpack http://github.com/miyagawa/heroku-buildpack-perl.git -7- .... everything gets installed.. Successfully! -8- Visiting the link as provided by heroku should now work? or am I missing something? `heroku logs` mentions: Starting process with command `perl -Mlib=$PWD/local/lib/perl5 ./local/bin/starman --preload-app --port 57400` 2013-12-11T23:03:52.119529+00:00 heroku[web.1]: Starting process with command `perl -Mlib=$PWD/local/lib/perl5 ./local/bin/starman --preload-app --port 32316` 2013-12-11T23:03:53.102716+00:00 app[web.1]: Error while loading /app/app.psgi: No such file or directory at (eval 10) line 4. 2013-12-11T23:03:53.510234+00:00 app[web.1]: Error while loading /app/app.psgi: No such file or directory at (eval 10) line 4. Maybe someone has a clue and after a hint then I might get to the level of being able to write something about this. Thanks, Gert
2013/12/12 Gert van Oss <gertlist@mac.com>
Starting process with command `perl -Mlib=$PWD/local/lib/perl5 ./local/bin/starman --preload-app --port 57400` 2013-12-11T23:03:52.119529+00:00 heroku[web.1]: Starting process with command `perl -Mlib=$PWD/local/lib/perl5 ./local/bin/starman --preload-app --port 32316` 2013-12-11T23:03:53.102716+00:00 app[web.1]: Error while loading /app/app.psgi: No such file or directory at (eval 10) line 4. 2013-12-11T23:03:53.510234+00:00 app[web.1]: Error while loading /app/app.psgi: No such file or directory at (eval 10) line 4.
Maybe someone has a clue and after a hint then I might get to the level of being able to write something about this.
In your step 0 you make link to app.psgi into application directory, but is this the this directory '/app' in heroku? -- Wbr, Kõike hääd, Gunnar
On 12 dec. 2013, at 12:55, WK <wanradt@gmail.com> wrote:
2013/12/12 Gert van Oss <gertlist@mac.com>
Starting process with command `perl -Mlib=$PWD/local/lib/perl5 ./local/bin/starman --preload-app --port 57400` 2013-12-11T23:03:52.119529+00:00 heroku[web.1]: Starting process with command `perl -Mlib=$PWD/local/lib/perl5 ./local/bin/starman --preload-app --port 32316` 2013-12-11T23:03:53.102716+00:00 app[web.1]: Error while loading /app/app.psgi: No such file or directory at (eval 10) line 4. 2013-12-11T23:03:53.510234+00:00 app[web.1]: Error while loading /app/app.psgi: No such file or directory at (eval 10) line 4.
Maybe someone has a clue and after a hint then I might get to the level of being able to write something about this.
In your step 0 you make link to app.psgi into application directory, but is this the this directory '/app' in heroku?
mmhh.. I would say yes. It is the git repository that is being pushed to heroku. I’m lost. Even if I exactly copy the example mentioned here: https://gist.github.com/ysasaki/3149659 it gives me the errors mentioned above.
I have no experience with Heroku. Have you tried contacting them and asking why it can't find the file? On Thu, Dec 12, 2013 at 10:07 PM, Gert van Oss <gertvanoss@me.com> wrote:
On 12 dec. 2013, at 12:55, WK <wanradt@gmail.com> wrote:
2013/12/12 Gert van Oss <gertlist@mac.com>
Starting process with command `perl -Mlib=$PWD/local/lib/perl5 ./local/bin/starman --preload-app --port 57400` 2013-12-11T23:03:52.119529+00:00 heroku[web.1]: Starting process with command `perl -Mlib=$PWD/local/lib/perl5 ./local/bin/starman --preload-app --port 32316` 2013-12-11T23:03:53.102716+00:00 app[web.1]: Error while loading /app/app.psgi: No such file or directory at (eval 10) line 4. 2013-12-11T23:03:53.510234+00:00 app[web.1]: Error while loading /app/app.psgi: No such file or directory at (eval 10) line 4.
Maybe someone has a clue and after a hint then I might get to the level of being able to write something about this.
In your step 0 you make link to app.psgi into application directory, but is this the this directory '/app' in heroku?
mmhh.. I would say yes. It is the git repository that is being pushed to heroku. I’m lost. Even if I exactly copy the example mentioned here: https://gist.github.com/ysasaki/3149659 it gives me the errors mentioned above.
_______________________________________________ dancer-users mailing list dancer-users@dancer.pm http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
On 15 dec. 2013, at 19:16, sawyer x <xsawyerx@gmail.com> wrote:
I have no experience with Heroku. Have you tried contacting them and asking why it can't find the file?
I did ask the Heroku people and below I paste what they replied. I haven’t gotten any further with this. I choose Heroku as I used it for a few other things but maybe for using Dancer I should look for alternatives that have been mentioned on this list. Thanks. […] reply from Heroku below
Hi,
This error
``` 2013-12-11T23:03:53.102716+00:00 app[web.1]: Error while loading /app/app= .psgi: No such file or directory at (eval 10) line 4. =
```
is indicative of a problem with your application code. An issue of this n= ature is outside the scope of Heroku Support.
Generally, we recommend:
* Getting your app running and working locally before running it on Herok= u. * Use our [logging features][1] to determine the cause of errors. Some [H= eroku addons][2] can also help you track and debug errors. * [Search our documentation][3] as well as using Google. [Stack Overflow]= [4] is also a great resource for general programming questions. For insta= nce, [we offer advice on how to fix an offline application][5] you may fi= nd helpful.
If you have done your own due diligence trying to solve the problem and a= re still having trouble, please be specific about the problem you are exp= eriencing (such as including log output of the error) and we will do our = best to point you in the right direction.
Thanks, Neil
[1]: https://devcenter.heroku.com/articles/logging [2]: https://addons.heroku.com/ [3]: https://devcenter.heroku.com/ [4]: http://stackoverflow.com/ [5]: https://devcenter.heroku.com/articles/application-offline
----------------------------------------------
On Thu, Dec 12, 2013 at 10:07 PM, Gert van Oss <gertvanoss@me.com> wrote:
On 12 dec. 2013, at 12:55, WK <wanradt@gmail.com> wrote:
2013/12/12 Gert van Oss <gertlist@mac.com>
Starting process with command `perl -Mlib=$PWD/local/lib/perl5 ./local/bin/starman --preload-app --port 57400`
2013-12-11T23:03:52.119529+00:00 heroku[web.1]: Starting process with command `perl -Mlib=$PWD/local/lib/perl5 ./local/bin/starman --preload-app --port 32316`
2013-12-11T23:03:53.102716+00:00 app[web.1]: Error while loading /app/app.psgi: No such file or directory at (eval 10) line 4.
2013-12-11T23:03:53.510234+00:00 app[web.1]: Error while loading /app/app.psgi: No such file or directory at (eval 10) line 4.
Maybe someone has a clue and after a hint then I might get to the level of being able to write something about this.
In your step 0 you make link to app.psgi into application directory, but is this the this directory '/app' in heroku?
mmhh.. I would say yes. It is the git repository that is being pushed to heroku.
I’m lost. Even if I exactly copy the example mentioned here: https://gist.github.com/ysasaki/3149659
it gives me the errors mentioned above.
_______________________________________________
dancer-users mailing list
dancer-users@dancer.pm
_______________________________________________
dancer-users mailing list
dancer-users@dancer.pm
The app.psgi file is past the application, since that's what's used to find and run the application. So that can't be it. On Sun, Dec 15, 2013 at 7:23 PM, Gert van Oss <gertvanoss@me.com> wrote:
On 15 dec. 2013, at 19:16, sawyer x <xsawyerx@gmail.com> wrote:
I have no experience with Heroku. Have you tried contacting them and asking why it can't find the file?
I did ask the Heroku people and below I paste what they replied. I haven’t gotten any further with this. I choose Heroku as I used it for a few other things but maybe for using Dancer I should look for alternatives that have been mentioned on this list.
Thanks. […] reply from Heroku below
Hi,
This error
``` 2013-12-11T23:03:53.102716+00:00 app[web.1]: Error while loading /app/app= .psgi: No such file or directory at (eval 10) line 4. =
```
is indicative of a problem with your application code. An issue of this n= ature is outside the scope of Heroku Support.
Generally, we recommend:
* Getting your app running and working locally before running it on Herok= u. * Use our [logging features][1] to determine the cause of errors. Some [H= eroku addons][2] can also help you track and debug errors. * [Search our documentation][3] as well as using Google. [Stack Overflow]= [4] is also a great resource for general programming questions. For insta= nce, [we offer advice on how to fix an offline application][5] you may fi= nd helpful.
If you have done your own due diligence trying to solve the problem and a= re still having trouble, please be specific about the problem you are exp= eriencing (such as including log output of the error) and we will do our = best to point you in the right direction.
Thanks, Neil
[1]: https://devcenter.heroku.com/articles/logging [2]: https://addons.heroku.com/ [3]: https://devcenter.heroku.com/ [4]: http://stackoverflow.com/ [5]: https://devcenter.heroku.com/articles/application-offline
----------------------------------------------
On Thu, Dec 12, 2013 at 10:07 PM, Gert van Oss <gertvanoss@me.com> wrote:
On 12 dec. 2013, at 12:55, WK <wanradt@gmail.com> wrote:
2013/12/12 Gert van Oss <gertlist@mac.com>
Starting process with command `perl -Mlib=$PWD/local/lib/perl5
./local/bin/starman --preload-app --port 57400`
2013-12-11T23:03:52.119529+00:00 heroku[web.1]: Starting process with
command `perl -Mlib=$PWD/local/lib/perl5 ./local/bin/starman --preload-app --port 32316`
2013-12-11T23:03:53.102716+00:00 app[web.1]: Error while loading
/app/app.psgi: No such file or directory at (eval 10) line 4.
2013-12-11T23:03:53.510234+00:00 app[web.1]: Error while loading
/app/app.psgi: No such file or directory at (eval 10) line 4.
Maybe someone has a clue and after a hint then I might get to the level of being able to write something about this.
In your step 0 you make link to app.psgi into application directory, but is this the this directory '/app' in heroku?
mmhh.. I would say yes. It is the git repository that is being pushed to heroku.
I’m lost. Even if I exactly copy the example mentioned here:
it gives me the errors mentioned above.
_______________________________________________
dancer-users mailing list
dancer-users@dancer.pm
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
_______________________________________________
dancer-users mailing list
dancer-users@dancer.pm
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
_______________________________________________ dancer-users mailing list dancer-users@dancer.pm http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
2013/12/15 Gert van Oss <gertvanoss@me.com>
I did ask the Heroku people and below I paste what they replied. I haven’t gotten any further with this. I choose Heroku as I used it for a few other things but maybe for using Dancer I should look for alternatives that have been mentioned on this list.
I tried to understand the directory structure in Heroku apps, but without success. What is app-dir? Is this symlink for your Dancer app root-dir? Or? Anyway, that seem still question to Heroku. -- Wbr Kõike hääd, Gunnar
For the moment I can’t answer the question yet. I’m experimenting. I did find the solution for a simple ‘hello world’ example in: https://github.com/dpiccone/perloku_dancer_seedapp Haven’t got it to work for a demo-app. I seem to link the wrong app.pl or app-dir indeed. Gert On 15 dec. 2013, at 23:02, WK <wanradt@gmail.com> wrote:
2013/12/15 Gert van Oss <gertvanoss@me.com>
I did ask the Heroku people and below I paste what they replied. I haven’t gotten any further with this. I choose Heroku as I used it for a few other things but maybe for using Dancer I should look for alternatives that have been mentioned on this list.
I tried to understand the directory structure in Heroku apps, but without success. What is app-dir? Is this symlink for your Dancer app root-dir? Or? Anyway, that seem still question to Heroku.
-- Wbr Kõike hääd,
Gunnar _______________________________________________ dancer-users mailing list dancer-users@dancer.pm http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
Deploying of a Dancer demo app to heroku works fine with Perloku (https://github.com/judofyr/perloku). I’ll mention the steps below. Haven’t had any succes with Dancer2 yet. Steps Dancer to Heroku Dancer -a Dancer1_To_Heroku cd Dancer1_To_Heroku/ Save the following in a file named *Perloku* #!/bin/sh ./bin/app.pl daemon --port=$PORT Make *Perloku* executable chmod +x Perloku Create Git repository: `git init` git add . git commit -m "initial import" heroku create -s cedar --buildpack http://github.com/judofyr/perloku.git git push heroku master Voilà. A dancer site. On 15 dec. 2013, at 23:07, Gert van Oss <gertvanoss@me.com> wrote:
For the moment I can’t answer the question yet. I’m experimenting. I did find the solution for a simple ‘hello world’ example in:
https://github.com/dpiccone/perloku_dancer_seedapp
Haven’t got it to work for a demo-app. I seem to link the wrong app.pl or app-dir indeed.
Gert
On 15 dec. 2013, at 23:02, WK <wanradt@gmail.com> wrote:
2013/12/15 Gert van Oss <gertvanoss@me.com>
I did ask the Heroku people and below I paste what they replied. I haven’t gotten any further with this. I choose Heroku as I used it for a few other things but maybe for using Dancer I should look for alternatives that have been mentioned on this list.
I tried to understand the directory structure in Heroku apps, but without success. What is app-dir? Is this symlink for your Dancer app root-dir? Or? Anyway, that seem still question to Heroku.
-- Wbr Kõike hääd,
Gunnar _______________________________________________ dancer-users mailing list dancer-users@dancer.pm http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
_______________________________________________ dancer-users mailing list dancer-users@dancer.pm http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
Would you like to contribute this to the documentation? I'm sure a poor fellow trying to accomplish the same would appreciate you pitching in the solution after hammering your head on it. :) On Mon, Dec 16, 2013 at 2:11 PM, Gert van Oss <gertvanoss@me.com> wrote:
Deploying of a Dancer demo app to heroku works fine with Perloku ( https://github.com/judofyr/perloku). I’ll mention the steps below. Haven’t had any succes with Dancer2 yet.
Steps Dancer to Heroku
Dancer -a Dancer1_To_Heroku cd Dancer1_To_Heroku/
Save the following in a file named *Perloku*
#!/bin/sh ./bin/app.pl daemon --port=$PORT
Make *Perloku* executable
chmod +x Perloku
Create Git repository: `git init`
git add . git commit -m "initial import" heroku create -s cedar --buildpack http://github.com/judofyr/perloku.git git push heroku master
Voilà. A dancer site.
On 15 dec. 2013, at 23:07, Gert van Oss <gertvanoss@me.com> wrote:
For the moment I can’t answer the question yet. I’m experimenting. I did find the solution for a simple ‘hello world’ example in:
https://github.com/dpiccone/perloku_dancer_seedapp
Haven’t got it to work for a demo-app. I seem to link the wrong app.pl or app-dir indeed.
Gert
On 15 dec. 2013, at 23:02, WK <wanradt@gmail.com> wrote:
2013/12/15 Gert van Oss <gertvanoss@me.com>
I did ask the Heroku people and below I paste what they replied. I haven’t gotten any further with this. I choose Heroku as I used it for a few other things but maybe for using Dancer I should look for alternatives that have been mentioned on this list.
I tried to understand the directory structure in Heroku apps, but without success. What is app-dir? Is this symlink for your Dancer app root-dir? Or? Anyway, that seem still question to Heroku.
-- Wbr Kõike hääd,
Gunnar _______________________________________________ dancer-users mailing list dancer-users@dancer.pm http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
_______________________________________________ dancer-users mailing list dancer-users@dancer.pm http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
_______________________________________________ dancer-users mailing list dancer-users@dancer.pm http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
Sure I’m more then happy to contribute this to the documentation. Uhmm… what is the procedure for this.. do you have a link or address where I can add/update this info? On 16 dec. 2013, at 14:28, sawyer x <xsawyerx@gmail.com> wrote:
Would you like to contribute this to the documentation?
I'm sure a poor fellow trying to accomplish the same would appreciate you pitching in the solution after hammering your head on it. :)
On Mon, Dec 16, 2013 at 2:11 PM, Gert van Oss <gertvanoss@me.com> wrote: Deploying of a Dancer demo app to heroku works fine with Perloku (https://github.com/judofyr/perloku). I’ll mention the steps below. Haven’t had any succes with Dancer2 yet.
Steps Dancer to Heroku
Dancer -a Dancer1_To_Heroku cd Dancer1_To_Heroku/
Save the following in a file named *Perloku*
#!/bin/sh ./bin/app.pl daemon --port=$PORT
Make *Perloku* executable
chmod +x Perloku
Create Git repository: `git init`
git add . git commit -m "initial import" heroku create -s cedar --buildpack http://github.com/judofyr/perloku.git git push heroku master
Voilà. A dancer site.
On 15 dec. 2013, at 23:07, Gert van Oss <gertvanoss@me.com> wrote:
For the moment I can’t answer the question yet. I’m experimenting. I did find the solution for a simple ‘hello world’ example in:
https://github.com/dpiccone/perloku_dancer_seedapp
Haven’t got it to work for a demo-app. I seem to link the wrong app.pl or app-dir indeed.
Gert
On 15 dec. 2013, at 23:02, WK <wanradt@gmail.com> wrote:
2013/12/15 Gert van Oss <gertvanoss@me.com>
I did ask the Heroku people and below I paste what they replied. I haven’t gotten any further with this. I choose Heroku as I used it for a few other things but maybe for using Dancer I should look for alternatives that have been mentioned on this list.
I tried to understand the directory structure in Heroku apps, but without success. What is app-dir? Is this symlink for your Dancer app root-dir? Or? Anyway, that seem still question to Heroku.
-- Wbr Kõike hääd,
Gunnar _______________________________________________ dancer-users mailing list dancer-users@dancer.pm http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
_______________________________________________ dancer-users mailing list dancer-users@dancer.pm http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
_______________________________________________ dancer-users mailing list dancer-users@dancer.pm http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
_______________________________________________ dancer-users mailing list dancer-users@dancer.pm http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
You can look through the available documentation and see if you find a place it will fit. Perhaps under the cookbook? Then you can submit a patch. You can use RT, or you can clone the Github project and submit a pull request. Not everyone is familiar and comfortable with that, so also we're happy to receive changes via email (whether in a patch file or just email content). Whatever works for you. On Mon, Dec 16, 2013 at 2:39 PM, Gert van Oss <gertvanoss@me.com> wrote:
Sure I’m more then happy to contribute this to the documentation. Uhmm… what is the procedure for this.. do you have a link or address where I can add/update this info?
On 16 dec. 2013, at 14:28, sawyer x <xsawyerx@gmail.com> wrote:
Would you like to contribute this to the documentation?
I'm sure a poor fellow trying to accomplish the same would appreciate you pitching in the solution after hammering your head on it. :)
On Mon, Dec 16, 2013 at 2:11 PM, Gert van Oss <gertvanoss@me.com> wrote:
Deploying of a Dancer demo app to heroku works fine with Perloku ( https://github.com/judofyr/perloku). I’ll mention the steps below. Haven’t had any succes with Dancer2 yet.
Steps Dancer to Heroku
Dancer -a Dancer1_To_Heroku cd Dancer1_To_Heroku/
Save the following in a file named *Perloku*
#!/bin/sh ./bin/app.pl daemon --port=$PORT
Make *Perloku* executable
chmod +x Perloku
Create Git repository: `git init`
git add . git commit -m "initial import" heroku create -s cedar --buildpack http://github.com/judofyr/perloku.git git push heroku master
Voilà. A dancer site.
On 15 dec. 2013, at 23:07, Gert van Oss <gertvanoss@me.com> wrote:
For the moment I can’t answer the question yet. I’m experimenting. I did find the solution for a simple ‘hello world’ example in:
https://github.com/dpiccone/perloku_dancer_seedapp
Haven’t got it to work for a demo-app. I seem to link the wrong app.plor app-dir indeed.
Gert
On 15 dec. 2013, at 23:02, WK <wanradt@gmail.com> wrote:
2013/12/15 Gert van Oss <gertvanoss@me.com>
I did ask the Heroku people and below I paste what they replied. I haven’t gotten any further with this. I choose Heroku as I used it for a few other things but maybe for using Dancer I should look for alternatives that have been mentioned on this list.
I tried to understand the directory structure in Heroku apps, but without success. What is app-dir? Is this symlink for your Dancer app root-dir? Or? Anyway, that seem still question to Heroku.
-- Wbr Kõike hääd,
Gunnar _______________________________________________ dancer-users mailing list dancer-users@dancer.pm http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
_______________________________________________ dancer-users mailing list dancer-users@dancer.pm http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
_______________________________________________ dancer-users mailing list dancer-users@dancer.pm http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
_______________________________________________ dancer-users mailing list dancer-users@dancer.pm http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
_______________________________________________ dancer-users mailing list dancer-users@dancer.pm http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
participants (4)
-
Gert van Oss -
Gert van Oss -
sawyer x -
WK