The web in a box - a next generation web framework for the Perl programming language

IRC log for #mojo, 2016-07-30

| Channels | #mojo index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:21 esh joined #mojo
01:15 esh joined #mojo
02:29 tchaves joined #mojo
02:35 ningu joined #mojo
02:37 noganex_ joined #mojo
03:08 kaare_ joined #mojo
03:30 Janos joined #mojo
05:55 dod joined #mojo
06:00 dod joined #mojo
06:00 dod joined #mojo
06:10 ababu joined #mojo
06:11 ababu Hello Guys
06:11 ababu Any one has example program which do not use lite and connect with sqlite
06:11 ababu Any help would be appriciated
06:13 Grinnz https://metacpan.org/source/DBOOK/Mojo-SQLite-0.022/examples/blog
06:14 ababu Thanks
06:14 ababu Let me check :)
06:32 ababu joined #mojo
07:12 che-quest joined #mojo
07:14 _dave_ joined #mojo
07:38 jeydurai joined #mojo
07:39 jeydurai Hi, I have doubt in deploying in Heroku from Linux Mint
07:39 jeydurai I installed Mojolicious::Command::deploy::heroku
07:40 jeydurai I tried ./myapp deploy heroku -n myapp
07:40 jeydurai I am getting the following error
07:41 jeydurai Unknown command "deploy", may be you need to install it
07:41 jeydurai Can someone help me please?
07:48 Janos joined #mojo
07:51 Vandal joined #mojo
08:01 jeydurai Can't locate object method "new" via package "Mojo::JSON" at /usr/local/share/perl/5.18.2/Net/Heroku.pm line 88, <STDIN> line 4
08:01 jeydurai what is it when I tried to install in Heroku
08:01 jeydurai How do I sort it out
08:04 Grinnz https://github.com/tempire/net-heroku/issues/5
08:38 mpapec eu tshirts,
08:38 mpapec can someone confirm that stated dimensions are correct?
08:38 mpapec https://shop.spreadshirt.de/kraih/mojolicious-A107447600?department=1&amp;productType=812&amp;color=353D56&amp;appearance=348&amp;view=1
08:39 mpapec L is 76cm in height which seems quite large even for XL :^
09:38 tchaves joined #mojo
09:51 ningu joined #mojo
10:34 sugar joined #mojo
11:18 Vandal joined #mojo
12:02 kid51 joined #mojo
12:03 cuechan joined #mojo
13:14 sugar joined #mojo
13:15 itaipu joined #mojo
13:24 kid511 joined #mojo
13:40 sugar joined #mojo
13:52 ningu joined #mojo
14:08 sugar joined #mojo
14:10 ababu joined #mojo
14:10 ababu Hello All
14:11 ababu I am trying to connect with Sqlite DB, I am getting this error “Can't locate Mojo/SQLite.pm in @INC (you may need to install the Mojo::SQLite module)”
14:11 ababu the package should be installed with mojolicious, rite ?
14:11 ababu any clue why I am geting this error ?
14:12 pink_mist no
14:12 pink_mist it needs to be installed
14:12 ababu Ok. using cpan, I guess
14:24 romel what do you mean with 'installed with mojolicious'?
14:25 ababu cant install mojo::sqlite, looks like it needs build::tiny, which won’t install because test fails on TAP::Harness::Env
14:25 ababu @romel, I installed mojolicious from cpan, thought all modules would also get installed
14:26 ababu any clue what I am doing wrong ?
14:26 ababu I have no idea about perl and Mojolicious, its my first time
14:27 ababu any help will be appriciated  :)
14:27 romel mojolicious installation doesn't require mojo::sqlite so it should be installed separately using any method of your choice (cpan for instance)
14:28 ababu Tried cpan, but can’t install since tiny is not in there. If I try install tiny, then harness::env is having issues
14:28 ababu I am on ubuntu 14.04
14:29 ababu any one know what I am doing wrong
14:30 kaare_ joined #mojo
14:30 ababu Here is the error that I stumble when I try installing sqlite http://pastebin.com/EdZTkNF6
14:30 romel could you please paste output of cpan install command somewhere?
14:31 ababu Sure romel, please find it at http://pastebin.com/EdZTkNF6
14:31 romel thanks. i think you should check if you have build tools in your system
14:32 pink_mist ababu: can you paste *all* the output of the command instead of just one screenful?
14:34 ababu sure
14:34 ababu doing so
14:36 ababu http://pastebin.com/HyLR9kET
14:36 ababu complete output
14:38 romel ababu: what does 'which make' command say?
14:38 Kripton joined #mojo
14:38 romel oh, never mind
14:40 ababu :(
14:47 romel maybe you shoud try export LANG=C in your shell bevore invoking cpan install to avoid locale related warnings
14:48 ababu just forced it
14:48 ababu I guess that worked
15:11 ababu_ joined #mojo
15:27 lluad joined #mojo
15:36 sugar joined #mojo
15:38 good_news_everyon joined #mojo
15:38 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/vKjK2
15:38 good_news_everyon mojo/master 7299bf4 Sebastian Riedel: test failed zero downtime software upgrades
15:38 good_news_everyon left #mojo
15:41 ningu joined #mojo
15:44 sri not the cleanest test, but i can't think of something better
15:48 Janos joined #mojo
16:02 ababu joined #mojo
16:19 ababu joined #mojo
16:34 y1mmm joined #mojo
16:40 ababu joined #mojo
17:02 zivester joined #mojo
17:03 Vitrifur joined #mojo
17:33 tchaves joined #mojo
17:50 Adura joined #mojo
18:20 PryMar56 joined #mojo
18:24 y1mmm joined #mojo
18:42 sri does anyone have a systemd unit file for daemon/prefork?
18:44 sri suppose minion could use one too
20:18 meshl joined #mojo
20:30 y1mmm joined #mojo
21:23 ningu sri: no, but it would be cool to distribute a sample unit file, eventually
21:23 ningu I can experiment with it but I just upgraded ubuntu to 16.04 and don't have much experience with systemd yet
21:27 Grinnz sri, trying now, think i got a setup that works for either
21:27 Grinnz since they both start the same way and have no pidfile
21:28 Grinnz take the hypnotoad one, and remove the PIDFile and ExecReload options, and change Type to simple
21:29 ningu where is the hypnotoad one?
21:30 Grinnz https://github.com/kraih/mojo/blob/master/lib/Mojolicious/Guides/Cookbook.pod#hypnotoad end of section
21:30 ningu ah thanks
21:30 ningu I googled it, but didn't find that
21:31 Grinnz sri, oh and obviously change ExecStart to /path/to/perl /home/sri/myapp/script/my_app prefork
21:32 tchaves joined #mojo
21:33 Grinnz oh prefork does use a pidfile, i guess you could use that and pass -P to ExecStart to get a consistent location
21:33 Grinnz but it's not really necessary
21:34 sri i think a daemon example is fine, if you want preforking i think you'd use hypnotoad anyway
21:35 Grinnz with daemon, you can also leave out the KillMode option, since there's only one process
21:36 ningu how do people typically manage multiple minion workers?
21:36 Grinnz the default KillMode sends the SIGTERM to all processes in the group which is why you have to set that for prefork/hypnotoad to only send it to the main process
21:42 good_news_everyon joined #mojo
21:42 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/vKjbK
21:42 good_news_everyon mojo/master 0dc526e Sebastian Riedel: add unit configuration file example for the daemon command
21:42 good_news_everyon left #mojo
21:42 sri Grinnz++
21:42 sri i suppose minion would use a very similar one with a mention of postgresql maybe
21:43 Grinnz i admit i don't really know how minion workers are managed, wouldn't you have to manage multiple worker processes?
21:43 sri oh right
21:43 sri it's basically a prefork web server
21:44 Grinnz i'm not really sure how to fit that into one service file without a main "manager" process
21:44 sri so more like the hypnotoad one, so it doesn't try to kill all the processes
21:44 sri there is a main manager process
21:45 Grinnz what's the usual way to start up minion workers?
21:46 sri /home/sri/myapp/script/my_app minion worker
21:46 sri that starts a manager with 4 workers
21:47 sri it's basically prefork without pid file
21:49 sri and without prefork... since it forks on demand ;p
21:50 Grinnz right so i guess just like the daemon one, but with the KillMode set to process
21:51 sri would postgresql start first?
21:52 Grinnz and you probably want After=postgresql.service rather than network.target
21:52 sri ah
21:52 Grinnz a bit tricky because the postgres service might be named differently
21:53 sri figured as much
21:53 sri as an example it should be fine though
21:59 Grinnz you can also add Wants=postgresql.service, from what I can understand what that does is makes sure postgresql.service starts for this service even if it's not enabled
21:59 Grinnz or like, if both are not running, systemctl start minion will start both postgres and minion
22:00 sri Type=simple or Type=forking
22:00 sri ?
22:01 sri forking from the description sounds like it's meant for daemonized processes with a pid file
22:01 Grinnz right, you want simple
22:01 Grinnz forking expects the process it starts will exit
22:01 sri but the simple type seems to be forbidden from forking
22:01 Grinnz it seems to work fine with mojo prefork
22:01 Grinnz it still tracks any processes that are forked of
22:01 sri allright then :)
22:03 Grinnz going through all of this is making me wish we had systemd at work, lol
22:03 sri ouch
22:03 sri https://github.com/kraih/minion/commit/805c5590464cb10deb916f7e632a85c03062eb3f#diff-b30d9d6fe78ad2d38daed2446ba66d92R164
22:05 sugar joined #mojo
22:05 sri Grinnz++
22:14 ningu hmm... looks like there is no way native to minion to associate metadata with task names. I guess I can just keep track of it myself though
22:25 ningu yes, turned out to be super-easy once I pondered it for a bit :)
22:36 tchaves joined #mojo
23:07 sugar joined #mojo

| Channels | #mojo index | Today | | Search | Google Search | Plain-Text | summary