Coder Social home page Coder Social logo

app-autocrud's People

Contributors

damil avatar pj-dsi-devops avatar vanstyn avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

app-autocrud's Issues

no such controller : Plack (App/AutoCRUD.pm:173)

I am trying to run App::AutoCRUD as FastCGI with the following invocation:-

plackup -s FCGI --listen /tmp/app.sock crud.psgi

Contents of crud.psgi:-

#!/usr/bin/env perl

use App::AutoCRUD;
use YAML qw/LoadFile/;
my $config = LoadFile "/var/www/vhosts/example.com/config.yaml";
my $crud   = App::AutoCRUD->new(config => $config);
my $app    = $crud->to_app;

Contents of config.yaml:-

app:
  name: Test AutoCRUD

datasources :
  Source1 :
    dbh:
      connect:
          # arguments that will be passed to DBI->connect(...)
          # for example :
        - dbi:SQLite:dbname=/var/www/vhosts/example.com/example.com.db
        - "" # user
        - "" # password
        - RaiseError    : 1
          sqlite_unicode: 1

When accessing the page from a browser, it outputs the following:-

500 Server Error

no such controller : Plack at /home/chaz/perl5/lib/perl5/App/AutoCRUD.pm line 173.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.