Syzgyn / Paperback

NZB Grabber for Comics
GNU General Public License v3.0
0 stars 0 forks source link

WIKI? #4

Open theotocopulitos opened 4 years ago

theotocopulitos commented 4 years ago

Hi, is there a wiki describing how to install and run Paperback?

Thanks

Syzgyn commented 4 years ago

Not yet, no. I'm still in basic feature development and want to get that complete before I create an easy way to install it and look for testers.

You're welcome to take a stab at installing it on your own, You'll need to setup Apache or Nginx, clone the repo, and run composer install then 'npm run' at the very least.

Feel free to hit me up if you have any questions!

theotocopulitos commented 4 years ago

Thanks... I do not want to take time from your developement, and I am learning as I go (never heard of composer and laravel before), so do not waste too much time on my questions, I'd understand. Even worse, I am on windows (ouch!)

phpunit/phpunit suggests installing phpunit/php-invoker (^2.0.0)
Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi

   Illuminate\Database\QueryException

  Database (C:\Users\HTPC\Downloads\Paperback-master\database\database.sqlite) does not exist. (SQL: PRAGMA foreign_keys = ON;)

  at C:\Users\HTPC\Downloads\Paperback-master\vendor\laravel\framework\src\Illuminate\Database\Connection.php:671
    667|         // If an exception occurs when attempting to run a query, we'll format the error
    668|         // message to include the bindings with SQL, which will make this exception a
    669|         // lot more helpful to the developer instead of just the database's errors.
    670|         catch (Exception $e) {
  > 671|             throw new QueryException(
    672|                 $query, $this->prepareBindings($bindings), $e
    673|             );
    674|         }
    675|

  1   C:\Users\HTPC\Downloads\Paperback-master\vendor\laravel\framework\src\Illuminate\Database\Connectors\SQLiteConnector.php:34
      InvalidArgumentException::("Database (C:\Users\HTPC\Downloads\Paperback-master\database\database.sqlite) does not exist.")

  2   C:\Users\HTPC\Downloads\Paperback-master\vendor\laravel\framework\src\Illuminate\Database\Connectors\ConnectionFactory.php:220
      Illuminate\Database\Connectors\SQLiteConnector::connect(["sqlite", "C:\Users\HTPC\Downloads\Paperback-master\database\database.sqlite", "", "sqlite"])
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
Syzgyn commented 4 years ago

I knew I forgot a step. Fortunately that's a simple one, just create an empty file named database.sqlite.

theotocopulitos commented 4 years ago

That worked...

Next step "npm run" results in:

Scripts available in  via `npm run-script`:
  dev
    npm run development
  development
    cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
  watch
    npm run development -- --watch
  watch-poll
    npm run watch -- --watch-poll
  hot
    cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --disable-host-check --config=node_modules/laravel-mix/setup/webpack.config.js
  prod
    npm run production
  production
    cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
  jslint
    esw resources/js
  jslintwatch
    esw resources/js -w

Then, trying, for example npm run production, I get:


> @ production C:\nginx\paperback
> cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js

"cross-env" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ production: `cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ production script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\HTPC\AppData\Roaming\npm-cache\_logs\2020-09-07T17_09_29_917Z-debug.log

C:\nginx\paperback>npm run install
npm ERR! missing script: install

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\HTPC\AppData\Roaming\npm-cache\_logs\2020-09-07T17_10_01_136Z-debug.log

And the npm log is attached...

2020-09-07T17_15_22_182Z-debug.log

Syzgyn commented 4 years ago

So I tried installing from scratch and it turns out it's definitely more complicated than I'd like. Here's a list that should do it for now:

  1. git clone https://github.com/Syzgyn/Paperback.git (You'll want to pull down the latest version I just pushed today)
  2. cd Paperback
  3. composer install
  4. npm install -- If this fails, then make sure you're running the latest version of npm.
  5. npm run dev
  6. make a new empty file database/database.sqlite. Make sure it's editable by the web server
  7. copy .env.example to .env
  8. copy storage/app/paperback.default.ini to storage/app/paperback.ini
  9. php artisan migrate
  10. php artisan storage:link

That will hopefully get you to the point where the app loads correctly. From there you'll want to go to settings and add a ComicVine API key, then setup indexers and downloaders just like in Sonarr or Radarr.

Lemme know if you run into anymore issues. Simplifying this process is moving up my todo list.

theotocopulitos commented 4 years ago

Awesome, thanks so much for your help! I'll keep you informed how it goes!

I am going to try both, windows and linux