These are chat archives for scytherswings/Plex-Board

14th
Apr 2017
Sean Vreeland
@seanvree
Apr 14 2017 00:00
wasn't there another bug?
that we were workign on?
the script? My brain is fried
Andrew Newell
@scytherswings
Apr 14 2017 00:00
uhh let me look
I don't think so
Sean Vreeland
@seanvree
Apr 14 2017 00:00
yeah, I think we were good, right/
Andrew Newell
@scytherswings
Apr 14 2017 00:00
I thought I had addressed everything with windows stuff
but
you know
how these things go
Sean Vreeland
@seanvree
Apr 14 2017 00:01
Yup
Andrew Newell
@scytherswings
Apr 14 2017 00:01
lol
Sean Vreeland
@seanvree
Apr 14 2017 00:01
if we can get the BASIC funionality up
with a new name, let's launch 1.0 baby!
we are almost there!
sooooo, we also need to add a blurgb about how to update, right?
now that I htink
how do I update right now?
like git pull or serverupdate.sh?
Andrew Newell
@scytherswings
Apr 14 2017 00:02
alright
so if you use that rails cmd
then the scripts work without any tweaking
so you can run bash update.sh
you're on dev right?
Sean Vreeland
@seanvree
Apr 14 2017 00:02
yeah
Andrew Newell
@scytherswings
Apr 14 2017 00:03
sweet
let me know how that goes
Sean Vreeland
@seanvree
Apr 14 2017 00:03
hang on, let me switch to the box
back up root DIR c:\sites
lol
Andrew Newell
@scytherswings
Apr 14 2017 00:04
lol
never a bad idea
when testing
Sean Vreeland
@seanvree
Apr 14 2017 00:05
yeah, I should sandbox, but whatevs
okay ready
so
update.sh from BASH
OOORRRR
SH update.sh from CMD prompt
in theory either should work from a root c:\ CMD prompt right?
cuz, bash calls bash and SH calls cygwin
Andrew Newell
@scytherswings
Apr 14 2017 00:07
bash works just fine in that Command prompt with rails and ruby
i think that one has a different bash
all wrapped up in it
Sean Vreeland
@seanvree
Apr 14 2017 00:07
hummm
which one to try
Andrew Newell
@scytherswings
Apr 14 2017 00:07
That's the one that works for me
lol
Sean Vreeland
@seanvree
Apr 14 2017 00:07
K, imma do Bash update.sh from a CMD prompt
also
Andrew Newell
@scytherswings
Apr 14 2017 00:08
oooook
Sean Vreeland
@seanvree
Apr 14 2017 00:08
I wonder if I need to stop the service first???
props
Andrew Newell
@scytherswings
Apr 14 2017 00:08
yes
on linux it would stop it for you
but on windows it doesn't know how to control services
Sean Vreeland
@seanvree
Apr 14 2017 00:08
take these notes down to add to the main page for UPDATING
Andrew Newell
@scytherswings
Apr 14 2017 00:08
Good point
I"ll edit it now
Sean Vreeland
@seanvree
Apr 14 2017 00:08
yeah, I always do
just wondering what would happen
Andrew Newell
@scytherswings
Apr 14 2017 00:08
Honestly I don't think it would really do anything
the application is loaded into memory
Sean Vreeland
@seanvree
Apr 14 2017 00:09
pythong apps will take the update, meanign you can update the files when they are in use, but they don't go into effect till you restart the service
okay, heere we go
Andrew Newell
@scytherswings
Apr 14 2017 00:09
but its always a good idea to e safe
yeah
I believe this would behave the same way
Sean Vreeland
@seanvree
Apr 14 2017 00:09
lauch CMD prompt
~~~
CD:\sites\plexboard
bash update.sh
correction:
CD C:\sites\plexobard
Andrew Newell
@scytherswings
Apr 14 2017 00:10
plex-board usually
Sean Vreeland
@seanvree
Apr 14 2017 00:10
roger dat
C:\Users\Administrator>cd c:\sites\plex-board

c:\Sites\Plex-Board>bash update.sh

Pulling down the latest for the current branch.
remote: Counting objects: 66, done.
remote: Compressing objects: 100% (35/35), done.
remote: Total 66 (delta 47), reused 50 (delta 31), pack-reused 0
Unpacking objects: 100% (66/66), done.
From https://github.com/scytherswings/Plex-Board
   e22fb91..5c59c88  dev        -> origin/dev
Updating e22fb91..5c59c88
error: Your local changes to the following files would be overwritten by merge:
        serverSetup.sh
Please, commit your changes or stash them before you can merge.
Aborting

Executing the serverSetup.sh script to recompile assets and update dependencies.
serverSetup.sh: line 2: $'\r': command not found
serverSetup.sh: line 3: syntax error near unexpected token `$'in\r''
'erverSetup.sh: line 3: `case "$(uname -s)" in

c:\Sites\Plex-Board>
Andrew Newell
@scytherswings
Apr 14 2017 00:11
yep
Sean Vreeland
@seanvree
Apr 14 2017 00:11
NOPE
fuck
Andrew Newell
@scytherswings
Apr 14 2017 00:11
the other command prompt reads those files in fine
Sean Vreeland
@seanvree
Apr 14 2017 00:11
that is me
have to stash
or did it update?
Andrew Newell
@scytherswings
Apr 14 2017 00:11
that too
Sean Vreeland
@seanvree
Apr 14 2017 00:11
k, hanb tight
Andrew Newell
@scytherswings
Apr 14 2017 00:11
no see those syntax errors?
serverSetup.sh: line 2: $'\r': command not found
serverSetup.sh: line 3: syntax error near unexpected token `$'in\r''
Those are because windows expects to have all lines end in \r\n but *nix always terminates every line with just \n
Sean Vreeland
@seanvree
Apr 14 2017 00:12
c:\Sites\Plex-Board>git stash
warning: LF will be replaced by CRLF in Gemfile.lock.
The file will have its original line endings in your working directory.
Saved working directory and index state WIP on dev: e22fb91 add production flag to puma
HEAD is now at e22fb91 add production flag to puma

c:\Sites\Plex-Board>
oh shit
what does that mean?
the line 2 and 3?
Andrew Newell
@scytherswings
Apr 14 2017 00:12
You're familiar with control characters right?
Sean Vreeland
@seanvree
Apr 14 2017 00:12
soooo....fix or nah?
or what?
Andrew Newell
@scytherswings
Apr 14 2017 00:12
that's fine
Sean Vreeland
@seanvree
Apr 14 2017 00:12
yes, I am
Andrew Newell
@scytherswings
Apr 14 2017 00:12
git is just telling you it's changing your line endings
yeah so \t for tab, etc.
\r\n is CRLF or carriage-return line-feed
Sean Vreeland
@seanvree
Apr 14 2017 00:13
okay, you lost me now
Andrew Newell
@scytherswings
Apr 14 2017 00:13
linux terminates every line with jsut \n or line-feed
Sean Vreeland
@seanvree
Apr 14 2017 00:13
oh, I see
need to remove $ ?
Sean Vreeland
@seanvree
Apr 14 2017 00:14
no, I got that
Sean Vreeland
@seanvree
Apr 14 2017 00:14
I just don't know how to fix?
Andrew Newell
@scytherswings
Apr 14 2017 00:15
you'd either have to translate every scrpt
to have windows line endings
Sean Vreeland
@seanvree
Apr 14 2017 00:15
fuuuuck
wiat
hang tight on that
Andrew Newell
@scytherswings
Apr 14 2017 00:15
or you can simply use the command prompt with ruby and rails
Sean Vreeland
@seanvree
Apr 14 2017 00:17
so when using the ruby rails cmd prompt, do I need to add bash?
or just update.sh?
Andrew Newell
@scytherswings
Apr 14 2017 00:17
yeah, you have to call bash still
but it will use the one packaged with that command prompt
and it handles those line endings without issue
it's pretty sweet
So you don't have to fuck with any files at all to make them windows compatible
Sean Vreeland
@seanvree
Apr 14 2017 00:18
running now
hang tight

# Rails Environment Configuration.
The system cannot find the path specified.

---
git:
  user.name:  seanvree
  user.email: seanvree@hotmail.com
  version:    git version 1.9.4.msysgit.2

ruby:
  bin:        C:/RailsInstaller/Ruby2.0.0/bin/ruby.exe
  version:    ruby 2.3.3p222 (2016-11-21 revision 56859) [i386-mingw32]

rails:
  bin:        C:/RailsInstaller/Ruby2.0.0/bin/rails.bat
  version:

ssh:
  public_key_location: C:\Users\Administrator/.ssh/id_rsa.pub
  public_key_contents: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDDyKHVlyEilIXq2S5+gRgmdKaJjBmgU9NEaPfdeii04jzmayns5BVT971wdsdri11F+0o0s65p5BolZIoA8PzSdNAPLjtvVqsEpbWUNYN+loE53uOe069Th1RvvSPAKFI2SpknOkSdTb+dAyDu/zAJZxPT/pTOq4yYOUMwcwMRSg5Xpb46rPr2Qe+gse63iq77XxcRXiWXwKz8IvNIIUsPJoNono1o7v8/zTqUMm8Scu3Ul8pOFv90v/rWAO+fwWRaR7rVqVjq9anLUZ9bnrVNvkvE1XPztVwvh3+8UubtKoa9zVXwIEsUWwyyWJm1PhUdyiqv0bZ9GYu0v9M8lBpf seanvree <seanvree@hotmail.com>





C:\Sites>bash update.sh
bash: update.sh: No such file or directory

C:\Sites>cd plex-board

C:\Sites\Plex-Board>bash update.sh

Pulling down the latest for the current branch.
Updating e22fb91..5c59c88
error: Your local changes to the following files would be overwritten by merge:
        example.windows.server_config.yml
        serverSetup.sh
Please, commit your changes or stash them before you can merge.
Aborting

Executing the serverSetup.sh script to recompile assets and update dependencies.

The current operating system was detected as: Windows.
Stopping server if it's running.
Attempting to kill puma with PID: kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]

Destroying tmp folder to clear caches and leftover pidfiles.

Destroying public/images to clear leftover images.

WARNING: An RVM installation was not found. Did you follow the instructions correctly? Attempting to use system Ruby...
Successfully installed bundler-1.14.6
1 gem installed

Installing Gems. This could take a while depending on how powerful your CPU is...
Fetching gem metadata from https://rubygems.org/...........
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Resolving dependencies...
Using rake 12.0.0
Using i18n 0.8.1
Using minitest 5.10.1
Using thread_safe 0.3.6
Using builder 3.2.3
Using erubis 2.7.0
Using mini_portile2 2.1.0
Using rack 1.6.5
Using mime-types-data 3.2016.0521
Using arel 6.0.4
Using execjs 2.7.0
Using sass 3.4.23
Using thor 0.19.4
Using bundler 1.14.6
Using concurrent-ruby 1.0.5
Using coffee-script-source 1.12.2
Using unf_ext 0.0.7.2 (x86-mingw32)
Using multipart-post 2.0.0
Using ffi 1.9.18 (x86-mingw32)
Using hashie 3.5.5
Using multi_json 1.12.1
Using geocoder 1.4.3
Using json 1.8.6
Using netrc 0.11.0
Using parallel 1.11.1
Using puma 3.8.2
Using rdoc 4.3.0
Using tilt 2.0.7
Using sqlite3 1.3.13 (x86-mingw32)
Using tzinfo 1.2.3
Using nokogiri 1.7.1 (x86-mingw32)
Using rack-test 0.6.3
Using mime-types 3.1
Using autoprefixer-rails 6.7.7.1
Using uglifier 3.1.13
Using sprockets 3.7.1
Using coffee-script 2.4.1
Using unf 0.1.4
Using faraday 0.12.0.1
Using sdoc 0.4.2
Using activesupport 4.2.8
Using tzinfo-data 1.2017.2
Using loofah 2.0.3
Using mail 2.6.4
Using bootstrap-sass 3.3.7
Using domain_name 0.5.20170223
Using forecast_io 2.0.1
Using rails-deprecated_sanitizer 1.0.3
Using globalid 0.3.7
Using activemodel 4.2.8
Using jbuilder 2.6.3
Using rails-html-sanitizer 1.0.3
Using http-cookie 1.0.3
Using rails-dom-testing 1.0.8
Using activejob 4.2.8
Using activerecord 4.2.8
Using strip_attributes 1.8.0
Using rest-client 2.0.1 (x86-mingw32)
Using actionview 4.2.8
Using actionpack 4.2.8
Using actionmailer 4.2.8
Using railties 4.2.8
Using sprockets-rails 3.2.0
Using simple_form 3.4.0
Using jquery-rails 4.3.1
Using coffee-rails 4.2.1
Using lograge 0.4.1
Using rails 4.2.8
Using sass-rails 5.0.6
Using turbolinks 2.5.3
Using browserlog 0.0.3 from https://github.com/scytherswings/browserlog (at master@7b4eabc)
Using jquery-turbolinks 2.1.0
Bundle complete! 39 Gemfile dependencies, 72 gems now installed.
Gems in the groups development and test w
Andrew Newell
@scytherswings
Apr 14 2017 00:19
ok so i'll edit the update script to stop on git errors
Sean Vreeland
@seanvree
Apr 14 2017 00:19
continue:
wait
Use `bundle show [gemname]` to see where a bundled gem is installed.

Removing old secrets.yml file if it exists. Creating a fresh one with new secrets.

server_config.yml exists, not creating.
Creating and setting up the database for production.
The system cannot find the path specified.
The system cannot find the path specified.

Compiling assets. This could take a while depending on CPU power...
The system cannot find the path specified.

Creating images directory.

Finished. Run ./startServer.sh to start the server!


C:\Sites\Plex-Board>
soooo
1) weird cuz I DID stash
but that's a local thing
Andrew Newell
@scytherswings
Apr 14 2017 00:20
hmmmmm
Sean Vreeland
@seanvree
Apr 14 2017 00:20
2)
Andrew Newell
@scytherswings
Apr 14 2017 00:20
oh
Sean Vreeland
@seanvree
Apr 14 2017 00:20
what's the error for the system cannot find the path?
Andrew Newell
@scytherswings
Apr 14 2017 00:20
ok that makes sense
Sean Vreeland
@seanvree
Apr 14 2017 00:20
that happened when I set it up initally
Andrew Newell
@scytherswings
Apr 14 2017 00:20
so since git pull failed
Sean Vreeland
@seanvree
Apr 14 2017 00:20
but everything still worked
Andrew Newell
@scytherswings
Apr 14 2017 00:20
you didn't get the latest version of the serverSetup.sh which will stop after any errors
Sean Vreeland
@seanvree
Apr 14 2017 00:20
humm
okay
so, here
so if I do a manual git pull
? would that screw it up?
would I do gitpull THEN update.sh
Andrew Newell
@scytherswings
Apr 14 2017 00:21
you should backup your changes and then do a git reset --hard
Sean Vreeland
@seanvree
Apr 14 2017 00:21
right, that will reset my db, right?
Andrew Newell
@scytherswings
Apr 14 2017 00:21
yeah manual git pull will have the same error as the script did
no it won't
your DB is ignored by git
so it's safe
Sean Vreeland
@seanvree
Apr 14 2017 00:21
so what changes am i ignoring?
just serverconfig?
@scytherswings ?
wiat will get reset --hard wipe the subfiles in that dir?
like any subfiles I added?
to the root \Plex-board dir?
Andrew Newell
@scytherswings
Apr 14 2017 00:27
sorry had to put my kid to bed
you can ignore both changes
git reset --hard will undo any changes you made to tracked files
so anything that isn't tracked by git will be left alone
Sean Vreeland
@seanvree
Apr 14 2017 00:29
ahh, okay
running
done
so now, do git pull
Andrew Newell
@scytherswings
Apr 14 2017 00:29
so if you do a git status
Sean Vreeland
@seanvree
Apr 14 2017 00:29
or re-run BASH update.sh?
Andrew Newell
@scytherswings
Apr 14 2017 00:29
you shouldn't see any issues
Sean Vreeland
@seanvree
Apr 14 2017 00:29

C:\Sites\Plex-Board>git status
On branch dev
Your branch is behind 'origin/dev' by 15 commits, and can be fast-forwarded.
  (use "git pull" to update your local branch)

Untracked files:
  (use "git add <file>..." to include in what will be committed)

        StartServer.bat
        StartServer.exe
        db/production.sqlite3.default
        nohup.out

nothing added to commit but untracked files present (use "git add" to track)

C:\Sites\Plex-Board>
Andrew Newell
@scytherswings
Apr 14 2017 00:30
sweet
that's good
Sean Vreeland
@seanvree
Apr 14 2017 00:30
yup
Andrew Newell
@scytherswings
Apr 14 2017 00:30
you can run bash update.sh now
Sean Vreeland
@seanvree
Apr 14 2017 00:30
kk
running
C:\Sites\Plex-Board>bash update.sh

Pulling down the latest for the current branch.
remote: Counting objects: 6, done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 6 (delta 1), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (6/6), done.
From https://github.com/scytherswings/Plex-Board
   f68e10e..6888e9c  master     -> origin/master
Updating e22fb91..5c59c88
Fast-forward
 CHANGELOG.md                                       |  7 +++
 README.md                                          | 20 +++-----
 .../javascripts/notification_handler.js.coffee.erb |  2 +-
 config.ru                                          |  6 +--
 config/environments/production.rb                  |  4 +-
 config/initializers/server_config.rb               | 26 +++-------
 config/puma.rb                                     | 24 ++++++++--
 example.server_config.yml                          | 42 +++++++++++-----
 example.windows.server_config.yml                  | 42 +++++++++++-----
 serverSetup.sh                                     | 22 ++++++---
 startServer.sh                                     | 56 +++++++++++++++-------
 stopServer.sh                                      | 51 ++++++++++++++------
 12 files changed, 200 insertions(+), 102 deletions(-)

Executing the serverSetup.sh script to recompile assets and update dependencies.

The current operating system was detected as: Windows.
Destroying tmp folder to clear caches and leftover pidfiles.

Destroying public/images to clear leftover images.

Using system Ruby because we're on Windows...
Successfully installed bundler-1.14.6
1 gem installed

Installing Gems. This could take a while depending on how powerful your CPU is...
Fetching gem metadata from https://rubygems.org/...........
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Resolving dependencies...
Using rake 12.0.0
Using i18n 0.8.1
Using minitest 5.10.1
Using thread_safe 0.3.6
Using builder 3.2.3
Using erubis 2.7.0
Using mini_portile2 2.1.0
Using rack 1.6.5
Using mime-types-data 3.2016.0521
Using arel 6.0.4
Using execjs 2.7.0
Using sass 3.4.23
Using thor 0.19.4
Using bundler 1.14.6
Using concurrent-ruby 1.0.5
Using coffee-script-source 1.12.2
Using unf_ext 0.0.7.2 (x86-mingw32)
Using multipart-post 2.0.0
Using ffi 1.9.18 (x86-mingw32)
Using hashie 3.5.5
Using multi_json 1.12.1
Using geocoder 1.4.3
Using json 1.8.6
Using netrc 0.11.0
Using parallel 1.11.1
Using puma 3.8.2
Using rdoc 4.3.0
Using tilt 2.0.7
Using sqlite3 1.3.13 (x86-mingw32)
Using tzinfo 1.2.3
Using nokogiri 1.7.1 (x86-mingw32)
Using rack-test 0.6.3
Using mime-types 3.1
Using autoprefixer-rails 6.7.7.1
Using uglifier 3.1.13
Using sprockets 3.7.1
Using coffee-script 2.4.1
Using unf 0.1.4
Using faraday 0.12.0.1
Using sdoc 0.4.2
Using activesupport 4.2.8
Using tzinfo-data 1.2017.2
Using loofah 2.0.3
Using mail 2.6.4
Using bootstrap-sass 3.3.7
Using domain_name 0.5.20170223
Using forecast_io 2.0.1
Using rails-deprecated_sanitizer 1.0.3
Using globalid 0.3.7
Using activemodel 4.2.8
Using jbuilder 2.6.3
Using rails-html-sanitizer 1.0.3
Using http-cookie 1.0.3
Using rails-dom-testing 1.0.8
Using activejob 4.2.8
Using activerecord 4.2.8
Using strip_attributes 1.8.0
Using rest-client 2.0.1 (x86-mingw32)
Using actionview 4.2.8
Using actionpack 4.2.8
Using actionmailer 4.2.8
Using railties 4.2.8
Using sprockets-rails 3.2.0
Using simple_form 3.4.0
Using jquery-rails 4.3.1
Using coffee-rails 4.2.1
Using lograge 0.4.1
Using rails 4.2.8
Using sass-rails 5.0.6
Using turbolinks 2.5.3
Using browserlog 0.0.3 from https://github.com/scytherswings/browserlog (at master@7b4eabc)
Using jquery-turbolinks 2.1.0
Bundle complete! 39 Gemfile dependencies, 72 gems now installed.
Gems in the groups development and test were not installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.

Removing old secrets.yml file if it exists. Creating a fresh one with new secrets.

server_config.yml exists, not creating.
Creating and setting up the database for production.
Creating and setting up the database for production.
The system cannot find the path specified.

C:\Sites\Plex-Board>
Andrew Newell
@scytherswings
Apr 14 2017 00:31
hmmmmmmmmmmmm
it no likey that command
ok let me look at it real quick
Sean Vreeland
@seanvree
Apr 14 2017 00:32
yeah, what's the last error about?
Andrew Newell
@scytherswings
Apr 14 2017 00:33
looking
well that's weird
so the command that it was trying to run was bundle exec rake db:create db:migrate RAILS_ENV=production
can you run that in your command prompt?
Sean Vreeland
@seanvree
Apr 14 2017 00:38

C:\Sites\Plex-Board>bundle exec rake db:create db:migrate RAILS_ENV=production
The system cannot find the path specified.

C:\Sites\Plex-Board>
Andrew Newell
@scytherswings
Apr 14 2017 00:39
well fuck
Sean Vreeland
@seanvree
Apr 14 2017 00:39
wait
yeah
not sure
Andrew Newell
@scytherswings
Apr 14 2017 00:40

C:\Sites\Plex-Board>bash update.sh

Pulling down the latest for the current branch.
remote: Counting objects: 41, done.
remote: Compressing objects: 100% (41/41), done.
remote: Total 41 (delta 17), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (41/41), done.
From https://github.com/scytherswings/Plex-Board
   24f339f..c1c1b95  dev        -> origin/dev
   f68e10e..216f630  master     -> origin/master
Updating 24f339f..c1c1b95
error: unable to create file update.sh (Permission denied)

Executing the serverSetup.sh script to recompile assets and update dependencies.

The current operating system was detected as: Windows.
Destroying tmp folder to clear caches and leftover pidfiles.

Destroying public/images to clear leftover images.

Using system Ruby because we're on Windows...
Successfully installed bundler-1.14.6
1 gem installed

Installing Gems. This could take a while depending on how powerful your CPU is...
Fetching gem metadata from https://rubygems.org/........
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Using rake 12.0.0
Using i18n 0.8.1
Using minitest 5.10.1
Using thread_safe 0.3.6
Using builder 3.2.3
Using erubis 2.7.0
Using mini_portile2 2.1.0
Using rack 1.6.5
Using mime-types-data 3.2016.0521
Using arel 6.0.4
Using execjs 2.7.0
Using sass 3.4.23
Using thor 0.19.4
Using bundler 1.14.6
Using concurrent-ruby 1.0.5
Using coffee-script-source 1.12.2
Using unf_ext 0.0.7.2 (x86-mingw32)
Using multipart-post 2.0.0
Using ffi 1.9.18 (x86-mingw32)
Using hashie 3.5.5
Using multi_json 1.12.1
Using geocoder 1.4.3
Using json 1.8.6
Using netrc 0.11.0
Using parallel 1.11.1
Using puma 3.8.2
Using rdoc 4.3.0
Using tilt 2.0.7
Using sqlite3 1.3.13 (x86-mingw32)
Using tzinfo 1.2.3
Using nokogiri 1.7.1 (x86-mingw32)
Using rack-test 0.6.3
Using mime-types 3.1
Using autoprefixer-rails 6.7.7.1
Using uglifier 3.1.13
Using sprockets 3.7.1
Using coffee-script 2.4.1
Using unf 0.1.4
Using faraday 0.12.0.1
Using sdoc 0.4.2
Using activesupport 4.2.8
Using tzinfo-data 1.2017.2
Using loofah 2.0.3
Using mail 2.6.4
Using bootstrap-sass 3.3.7
Using domain_name 0.5.20170223
Using forecast_io 2.0.1
Using rails-deprecated_sanitizer 1.0.3
Using globalid 0.3.7
Using activemodel 4.2.8
Using jbuilder 2.6.3
Using rails-html-sanitizer 1.0.3
Using http-cookie 1.0.3
Using rails-dom-testing 1.0.8
Using activejob 4.2.8
Using activerecord 4.2.8
Using strip_attributes 1.8.0
Using rest-client 2.0.1 (x86-mingw32)
Using actionview 4.2.8
Using actionpack 4.2.8
Using actionmailer 4.2.8
Using railties 4.2.8
Using sprockets-rails 3.2.0
Using simple_form 3.4.0
Using jquery-rails 4.3.1
Using coffee-rails 4.2.1
Using lograge 0.4.1
Using rails 4.2.8
Using sass-rails 5.0.6
Using turbolinks 2.5.3
Using browserlog 0.0.3 from https://github.com/scytherswings/browserlog (at master@7b4eabc)
Using jquery-turbolinks 2.1.0
Bundle complete! 39 Gemfile dependencies, 72 gems now installed.
Gems in the groups development and test were not installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.

Removing old secrets.yml file if it exists. Creating a fresh one with new secrets.

server_config.yml exists, not creating.
Creating and setting up the database for production.
db/production.sqlite3 already exists

Compiling assets. This could take a while depending on CPU power...
I, [2017-04-13T20:39:23.594645 #28412]  INFO -- : Removed C:/Sites/Plex-Board/public/assets
I, [2017-04-13T20:39:23.694741 #28412]  INFO -- : Writing C:/Sites/Plex-Board/public/assets/glyphicons-halflings-regular-13634da87d9e23f8c3ed9108ce1724d183a39ad072e73e1b3d8cbf646d2d0407.eot
I, [2017-04-13T20:39:23.755349 #28412]  INFO -- : Writing C:/Sites/Plex-Board/public/assets/glyphicons-halflings-regular-13634da87d9e23f8c3ed9108ce1724d183a39ad072e73e1b3d8cbf646d2d0407.eot.gz
I, [2017-04-13T20:39:23.765769 #28412]  INFO -- : Writing C:/Sites/Plex-Board/public/assets/glyphicons-halflings-regular-d985cda034eab4c9f2403976f8d171fbf6efc4b593107d8b1401e5b6daa46295.svg
I, [2017-04-13T20:39:23.769274 #28412]  INFO -- : W
Sean Vreeland
@seanvree
Apr 14 2017 00:40
that was yours?
Andrew Newell
@scytherswings
Apr 14 2017 00:40
f9b79a1f49a0fa0d58595fad91540a3dd33835619db9257fe8c41bd14e8.js
I, [2017-04-13T20:39:38.096981 #28412]  INFO -- : Writing C:/Sites/Plex-Board/public/assets/browserlog/application-c576cf9b79a1f49a0fa0d58595fad91540a3dd33835619db9257fe8c41bd14e8.js.gz
I, [2017-04-13T20:39:40.772445 #28412]  INFO -- : Writing C:/Sites/Plex-Board/public/assets/browserlog/application-267506af02ca8d74f93d051011deb97d942ba45f13cad68ae23a3ef3694917db.css
I, [2017-04-13T20:39:40.773445 #28412]  INFO -- : Writing C:/Sites/Plex-Board/public/assets/browserlog/application-267506af02ca8d74f93d051011deb97d942ba45f13cad68ae23a3ef3694917db.css.gz

Creating images directory.

Finished. Run ./startServer.sh to start the server!


C:\Sites\Plex-Board>
yeah
Sean Vreeland
@seanvree
Apr 14 2017 00:40
hummmm
Andrew Newell
@scytherswings
Apr 14 2017 00:40
it works on my machine
lolololol
let me delete shit and see if it works
Sean Vreeland
@seanvree
Apr 14 2017 00:40
famouse last words of a coder
Andrew Newell
@scytherswings
Apr 14 2017 00:40
though you can see there was a permission denied issue with the update.sh
Sean Vreeland
@seanvree
Apr 14 2017 00:40
"well it works on my machine"
deerrrpppp
Andrew Newell
@scytherswings
Apr 14 2017 00:41
hahaha YEP
that fucked me over today
Sean Vreeland
@seanvree
Apr 14 2017 00:41
yeah, enver say that
Andrew Newell
@scytherswings
Apr 14 2017 00:41
I merged a PR and it totally blew up everything
Sean Vreeland
@seanvree
Apr 14 2017 00:41
never*
well, to a customer
ha
or a end user
umm
let me seee
where is that permission error you saw?
Andrew Newell
@scytherswings
Apr 14 2017 00:41
I think it might have been caused by git trying to acces update.sh while it was being executed
which means that anytime I update update.sh then it cannot update update.sh itself
you'd have to git pull manually
Sean Vreeland
@seanvree
Apr 14 2017 00:42
yeah
dude
I think that's the case
Andrew Newell
@scytherswings
Apr 14 2017 00:42
hopefully i won't have to change it much though
Sean Vreeland
@seanvree
Apr 14 2017 00:42
umm
wait, so what's the last script that I failed on in update.sh?
like, where am I at now?
Andrew Newell
@scytherswings
Apr 14 2017 00:42
no, update.sh worked for you
Sean Vreeland
@seanvree
Apr 14 2017 00:43
oh yeah
Andrew Newell
@scytherswings
Apr 14 2017 00:43
it was actually executing serverSetup.sh
Sean Vreeland
@seanvree
Apr 14 2017 00:43
sooo
Andrew Newell
@scytherswings
Apr 14 2017 00:43
after calling git pull
Sean Vreeland
@seanvree
Apr 14 2017 00:43
oh yeah
duh
Andrew Newell
@scytherswings
Apr 14 2017 00:43
it's a very simple script
Sean Vreeland
@seanvree
Apr 14 2017 00:43
umm, okay
Andrew Newell
@scytherswings
Apr 14 2017 00:43
heh
Sean Vreeland
@seanvree
Apr 14 2017 00:43
nope
htat's not it
C:\Sites\Plex-Board>bash serversetup.sh

The current operating system was detected as: Windows.
Destroying tmp folder to clear caches and leftover pidfiles.

Destroying public/images to clear leftover images.

Using system Ruby because we're on Windows...
Successfully installed bundler-1.14.6
1 gem installed

Installing Gems. This could take a while depending on how powerful your CPU is...
Fetching gem metadata from https://rubygems.org/........
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Using rake 12.0.0
Using i18n 0.8.1
Using minitest 5.10.1
Using thread_safe 0.3.6
Using builder 3.2.3
Using erubis 2.7.0
Using mini_portile2 2.1.0
Using rack 1.6.5
Using mime-types-data 3.2016.0521
Using arel 6.0.4
Using execjs 2.7.0
Using sass 3.4.23
Using thor 0.19.4
Using bundler 1.14.6
Using concurrent-ruby 1.0.5
Using coffee-script-source 1.12.2
Using unf_ext 0.0.7.2 (x86-mingw32)
Using multipart-post 2.0.0
Using ffi 1.9.18 (x86-mingw32)
Using hashie 3.5.5
Using multi_json 1.12.1
Using geocoder 1.4.3
Using json 1.8.6
Using netrc 0.11.0
Using parallel 1.11.1
Using puma 3.8.2
Using rdoc 4.3.0
Using tilt 2.0.7
Using sqlite3 1.3.13 (x86-mingw32)
Using tzinfo 1.2.3
Using nokogiri 1.7.1 (x86-mingw32)
Using rack-test 0.6.3
Using mime-types 3.1
Using autoprefixer-rails 6.7.7.1
Using uglifier 3.1.13
Using sprockets 3.7.1
Using coffee-script 2.4.1
Using unf 0.1.4
Using faraday 0.12.0.1
Using sdoc 0.4.2
Using activesupport 4.2.8
Using tzinfo-data 1.2017.2
Using loofah 2.0.3
Using mail 2.6.4
Using bootstrap-sass 3.3.7
Using domain_name 0.5.20170223
Using forecast_io 2.0.1
Using rails-deprecated_sanitizer 1.0.3
Using globalid 0.3.7
Using activemodel 4.2.8
Using jbuilder 2.6.3
Using rails-html-sanitizer 1.0.3
Using http-cookie 1.0.3
Using rails-dom-testing 1.0.8
Using activejob 4.2.8
Using activerecord 4.2.8
Using strip_attributes 1.8.0
Using rest-client 2.0.1 (x86-mingw32)
Using actionview 4.2.8
Using actionpack 4.2.8
Using actionmailer 4.2.8
Using railties 4.2.8
Using sprockets-rails 3.2.0
Using simple_form 3.4.0
Using jquery-rails 4.3.1
Using coffee-rails 4.2.1
Using lograge 0.4.1
Using rails 4.2.8
Using sass-rails 5.0.6
Using turbolinks 2.5.3
Using browserlog 0.0.3 from https://github.com/scytherswings/browserlog (at master@7b4eabc)
Using jquery-turbolinks 2.1.0
Bundle complete! 39 Gemfile dependencies, 72 gems now installed.
Gems in the groups development and test were not installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.

Removing old secrets.yml file if it exists. Creating a fresh one with new secrets.

server_config.yml exists, not creating.
Creating and setting up the database for production.
The system cannot find the path specified.

C:\Sites\Plex-Board>
I mean, I"m using an admin prompt
and those files are on root c:\
makes no sense
Andrew Newell
@scytherswings
Apr 14 2017 00:45
oh you're using admin
Sean Vreeland
@seanvree
Apr 14 2017 00:45
checking the file permissions in windows
Andrew Newell
@scytherswings
Apr 14 2017 00:45
let me try admin
Sean Vreeland
@seanvree
Apr 14 2017 00:45
duh, of course I am
always elevated cmd prompt
lol
Andrew Newell
@scytherswings
Apr 14 2017 00:45
I'm used to only using sudo when I actually need it
lool
Sean Vreeland
@seanvree
Apr 14 2017 00:45
dude
are you on a linus bux tho?
no
windows
so which actual file is it shitting on?
Andrew Newell
@scytherswings
Apr 14 2017 00:46
whoah

C:\Sites\Plex-Board>bash update.sh
bash: update.sh: No such file or directory

C:\Sites\Plex-Board>ls
CHANGELOG.md  LICENSE    config                             generateSecrets.sh  server_config.yml  travisSetup.sh
Dockerfile    README.md  config.ru                          lib                 startServer.sh     vendor
Gemfile       Rakefile   db                                 log                 stopServer.sh
Gemfile.lock  app        example.server_config.yml          public              test
Guardfile     bin        example.windows.server_config.yml  serverSetup.sh      tmp

C:\Sites\Plex-Board>bash update.sh
bash: update.sh: No such file or directory

C:\Sites\Plex-Board>
Sean Vreeland
@seanvree
Apr 14 2017 00:46
ha ha ha ha ha
yeah
umm
so
Andrew Newell
@scytherswings
Apr 14 2017 00:47
it doesn't even run with administrator for me
Sean Vreeland
@seanvree
Apr 14 2017 00:47
this is what's happenign
Andrew Newell
@scytherswings
Apr 14 2017 00:47
dafuuuuqu
Sean Vreeland
@seanvree
Apr 14 2017 00:47
no wiat
dude
hang on
what actual file is it having tourlbe with?
Andrew Newell
@scytherswings
Apr 14 2017 00:47
no i'm not even getting close to where yours ran
huh
Sean Vreeland
@seanvree
Apr 14 2017 00:47
I know bro
Andrew Newell
@scytherswings
Apr 14 2017 00:47
update.sh actually isn't in there
wtf
Sean Vreeland
@seanvree
Apr 14 2017 00:47
no, I know why
stop
hang with me
on my script
where I AM now
what file is it trying to access?
server_config.yml exists, not creating.
Creating and setting up the database for production.
The system cannot find the path specified.
Andrew Newell
@scytherswings
Apr 14 2017 00:48

printf "\nCreating and setting up the database for production.\n"
bundle exec rake db:create db:migrate RAILS_ENV=production
that's the line it was trying to execute
bundle exec rake db:create db:migrate RAILS_ENV=production
Sean Vreeland
@seanvree
Apr 14 2017 00:48
okay, so in windows...what file is it trying to create?
the db file?
Andrew Newell
@scytherswings
Apr 14 2017 00:48
I think it's trying to find bundle as a file or something
can you try bundle --version
Sean Vreeland
@seanvree
Apr 14 2017 00:49
got it
ya biiiitch
this is why
boom
stay with me
ready?
Andrew Newell
@scytherswings
Apr 14 2017 00:50
uh
sure
Sean Vreeland
@seanvree
Apr 14 2017 00:50
hang tithgt
testing
boom
got it
so
you're right, it's the wrong command
it's no permissions
Andrew Newell
@scytherswings
Apr 14 2017 00:51
side note: so I had to manually git pull on mine because git couldn't edit update.sh while it was executing.
Sean Vreeland
@seanvree
Apr 14 2017 00:51
dude, hear me out
then I'll tell you why yours isn't working either
they are related
Andrew Newell
@scytherswings
Apr 14 2017 00:51
mine works fine
read what I just said
lol
Sean Vreeland
@seanvree
Apr 14 2017 00:51
false
it's because the SH command
so, CYGWIN is better at handleing PATH
BASH - not so much
so back to what were talking about last night
windows basically has to use SH command
so, do this to test
run all your commands just like normal from BASH
Andrew Newell
@scytherswings
Apr 14 2017 00:53
C:\Sites\Plex-Board>bundle exec rake db:create db:migrate RAILS_ENV=production
db/production.sqlite3 already exists

C:\Sites\Plex-Board>
it works fine for me
I don't have the same problem dood
I'm not sure how our systems are set up differently
so what do you want me to test?
Sean Vreeland
@seanvree
Apr 14 2017 00:53
wait
okay
I got it
so
that last thing you posted
was the from a win comd prompt or the ruby rails comd prompt?
Andrew Newell
@scytherswings
Apr 14 2017 00:55
blob
Capture.PNG
whoah
copy paste worked
Sean Vreeland
@seanvree
Apr 14 2017 00:56
fuck
i figured it out
~~~
c:\Sites\Plex-Board>bash bundle exec rake db:create db:migrate RAILS_ENV=production

c:\Sites\Plex-Board>
this is easy
Andrew Newell
@scytherswings
Apr 14 2017 00:57
why doesn't yours have any output
Sean Vreeland
@seanvree
Apr 14 2017 00:57
in the script you need to add BASH in front of all commands
oh shit
how do I check if it created that?
Andrew Newell
@scytherswings
Apr 14 2017 00:57
well, it will only create it if it doesn't exist
but the database is localted at
db\production.sqlite3
Sean Vreeland
@seanvree
Apr 14 2017 00:59
hang tight
testing
hummm
I think this is a problem on my machine
errr
I'm not sure
I renamed the file
that was already htere and it didn't create a new AND didn't give me an error on output
so that's weird
can I wipe the entire Db folder to see if it recreates it?
Andrew Newell
@scytherswings
Apr 14 2017 01:01
does bundle --version work?
yeah
err
Sean Vreeland
@seanvree
Apr 14 2017 01:01
C:\Sites\Plex-Board>bundle --version
Bundler version 1.14.6

C:\Sites\Plex-Board>
Andrew Newell
@scytherswings
Apr 14 2017 01:01
I don't think it will recreate the db folder itself
whaaaaaaaaa
ok
that's a good sign
Sean Vreeland
@seanvree
Apr 14 2017 01:01
is that right?
Andrew Newell
@scytherswings
Apr 14 2017 01:01
yes
Sean Vreeland
@seanvree
Apr 14 2017 01:02
hummmm
yeah, this is funky
Andrew Newell
@scytherswings
Apr 14 2017 01:02
try this
bunde exec rake --version
blob
Sean Vreeland
@seanvree
Apr 14 2017 01:02
````
C:\Sites\Plex-Board>bundle exec rake --version
The system cannot find the path specified.

C:\Sites\Plex-Board>
Andrew Newell
@scytherswings
Apr 14 2017 01:03
ahh hah!
Sean Vreeland
@seanvree
Apr 14 2017 01:03
yup
Andrew Newell
@scytherswings
Apr 14 2017 01:03
gem install rake
Sean Vreeland
@seanvree
Apr 14 2017 01:03
roger
Andrew Newell
@scytherswings
Apr 14 2017 01:03
that's weird
that gem should be installed by running bundle install
Sean Vreeland
@seanvree
Apr 14 2017 01:03
C:\Sites\Plex-Board>gem install rake
Successfully installed rake-12.0.0
Parsing documentation for rake-12.0.0
Installing ri documentation for rake-12.0.0
Done installing documentation for rake after 0 seconds
1 gem installed

C:\Sites\Plex-Board>
Andrew Newell
@scytherswings
Apr 14 2017 01:03
it should be named in the output from that command
what does bundle install say?
Sean Vreeland
@seanvree
Apr 14 2017 01:04

C:\Sites\Plex-Board>bundle install
Fetching gem metadata from https://rubygems.org/........
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Using rake 12.0.0
Using i18n 0.8.1
Using minitest 5.10.1
Using thread_safe 0.3.6
Using builder 3.2.3
Using erubis 2.7.0
Using mini_portile2 2.1.0
Using rack 1.6.5
Using mime-types-data 3.2016.0521
Using arel 6.0.4
Using execjs 2.7.0
Using sass 3.4.23
Using thor 0.19.4
Using bundler 1.14.6
Using concurrent-ruby 1.0.5
Using coffee-script-source 1.12.2
Using unf_ext 0.0.7.2 (x86-mingw32)
Using multipart-post 2.0.0
Using ffi 1.9.18 (x86-mingw32)
Using hashie 3.5.5
Using multi_json 1.12.1
Using geocoder 1.4.3
Using json 1.8.6
Using netrc 0.11.0
Using parallel 1.11.1
Using puma 3.8.2
Using rdoc 4.3.0
Using tilt 2.0.7
Using sqlite3 1.3.13 (x86-mingw32)
Using tzinfo 1.2.3
Using nokogiri 1.7.1 (x86-mingw32)
Using rack-test 0.6.3
Using mime-types 3.1
Using autoprefixer-rails 6.7.7.1
Using uglifier 3.1.13
Using sprockets 3.7.1
Using coffee-script 2.4.1
Using unf 0.1.4
Using faraday 0.12.0.1
Using sdoc 0.4.2
Using activesupport 4.2.8
Using tzinfo-data 1.2017.2
Using loofah 2.0.3
Using mail 2.6.4
Using bootstrap-sass 3.3.7
Using domain_name 0.5.20170223
Using forecast_io 2.0.1
Using rails-deprecated_sanitizer 1.0.3
Using globalid 0.3.7
Using activemodel 4.2.8
Using jbuilder 2.6.3
Using rails-html-sanitizer 1.0.3
Using http-cookie 1.0.3
Using rails-dom-testing 1.0.8
Using activejob 4.2.8
Using activerecord 4.2.8
Using strip_attributes 1.8.0
Using rest-client 2.0.1 (x86-mingw32)
Using actionview 4.2.8
Using actionpack 4.2.8
Using actionmailer 4.2.8
Using railties 4.2.8
Using sprockets-rails 3.2.0
Using simple_form 3.4.0
Using jquery-rails 4.3.1
Using coffee-rails 4.2.1
Using lograge 0.4.1
Using rails 4.2.8
Using sass-rails 5.0.6
Using turbolinks 2.5.3
Using browserlog 0.0.3 from https://github.com/scytherswings/browserlog (at master@7b4eabc)
Using jquery-turbolinks 2.1.0
Bundle complete! 39 Gemfile dependencies, 72 gems now installed.
Gems in the groups development and test were not installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.

C:\Sites\Plex-Board>
Andrew Newell
@scytherswings
Apr 14 2017 01:04
so rake is on the first line
Sean Vreeland
@seanvree
Apr 14 2017 01:04
well yeah
Andrew Newell
@scytherswings
Apr 14 2017 01:04
let me scroll up and compare taht to what you had before
Sean Vreeland
@seanvree
Apr 14 2017 01:04
that's cuz I just installed it
Andrew Newell
@scytherswings
Apr 14 2017 01:04
right
Sean Vreeland
@seanvree
Apr 14 2017 01:04
i'm not sure if it was there before
Andrew Newell
@scytherswings
Apr 14 2017 01:04
whaaaa
rake was there before too
Sean Vreeland
@seanvree
Apr 14 2017 01:05
wtf
Andrew Newell
@scytherswings
Apr 14 2017 01:05
that's fucky
Sean Vreeland
@seanvree
Apr 14 2017 01:05
whatsv
Andrew Newell
@scytherswings
Apr 14 2017 01:05
try running bash serverSetup.sh now
Sean Vreeland
@seanvree
Apr 14 2017 01:05
continue
ha
Andrew Newell
@scytherswings
Apr 14 2017 01:05
i'll edit the instructions to explicitly install rake along with bundle
Sean Vreeland
@seanvree
Apr 14 2017 01:05
boom
that was it
Andrew Newell
@scytherswings
Apr 14 2017 01:05
that way people will be less likely to run into what you just did
Sean Vreeland
@seanvree
Apr 14 2017 01:05
soooo
Yup
Andrew Newell
@scytherswings
Apr 14 2017 01:05
though I can't explain why that happened though
Sean Vreeland
@seanvree
Apr 14 2017 01:06
yeah, either can I
i'll maybe have to wipe it and re-do the wiki agian from scratch
so, yeah
I wonder
Sean Vreeland
@seanvree
Apr 14 2017 01:06
takeaways:
add bash OR sh before all commands
IF running from WIN CMD prompt
it has to be SH
if ti's from the rails terminal
has to be bash
before every command
I bet theres a missing command in there that it didnt' run
now techincally you should have to do that
BUT that will help IF somehow their path got messed up
Andrew Newell
@scytherswings
Apr 14 2017 01:07
I think that stackoverflow article might be what caused your issue
Sean Vreeland
@seanvree
Apr 14 2017 01:07
so as long as they have CYGWIN installed, then BASH AND SH are internchangelble
ahh, y
yes
I think your'e right
Andrew Newell
@scytherswings
Apr 14 2017 01:08
regardless I'm changing the script to explicitly install rake along with bundler
Sean Vreeland
@seanvree
Apr 14 2017 01:08
yup
do it
Andrew Newell
@scytherswings
Apr 14 2017 01:08
because it should help prevent this
Sean Vreeland
@seanvree
Apr 14 2017 01:09
okay, imma smoke then see about this rev proxy shit
Andrew Newell
@scytherswings
Apr 14 2017 01:09
sweet
Glad we found that bug
\weird behavior
Sean Vreeland
@seanvree
Apr 14 2017 01:13
oh dude
I found it
my bad
cygwin got fucked from when I updated last night
YEAH
need to add this note:
becuase WIndows 10 CU installs native bash commands
yup
that's it
Andrew Newell
@scytherswings
Apr 14 2017 01:14
Wuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuut
"Don't update Windows" - Got it.
ha
just need to add something at the end of the windowss install wiki
actually at the TOP
something like "Since the new windows curator updates seems to have changed how the native Windows envirmoent variables interact with BASH commands, the process below MIHGT differ if you have updated to the Windows 10 CU"
something like that
Andrew Newell
@scytherswings
Apr 14 2017 01:16
Good addition
I'll put that in there
Sean Vreeland
@seanvree
Apr 14 2017 01:16
that same line para needs to be added to the wiki for win service installation
just replace bash with NSSM
all the same language
add
"more testing to follow"
etc etc
Andrew Newell
@scytherswings
Apr 14 2017 01:16
replace bash with nssm?
Sean Vreeland
@seanvree
Apr 14 2017 01:17
so that para goes on the base wiki page for iwndows install
and then that para ALSO goes in the SERverice install directions
but in the service install directions...replash BASH with NSSM
I knwo you haven't publshed the service install stuff
Andrew Newell
@scytherswings
Apr 14 2017 01:17
okay I'll have you error check it before I commit
Sean Vreeland
@seanvree
Apr 14 2017 01:17
yup
Andrew Newell
@scytherswings
Apr 14 2017 01:18
#### These instructions were tested on Windows 10 x64 as of 4/6/2017

#### Please read through the instructions before you start! I don't want you to miss any steps.

### The new Windows curator updates seems to have changed how the native Windows environment variables interact with BASH commands, the process below *might* differ if you have updated to the Windows 10 CU

If you have any problems please let me know!

1. Install Cygwin for your platform (x86_64 most likely) http://www.cygwin.com/  
(http://www.cygwin.com/setup-x86_64.exe)

    Previous installations of `cygwin` might affect this step. If you have issues you might consider rebooting.

3. Install nodejs (You'll want the x64.msi) https://nodejs.org/en/download/ 
(https://nodejs.org/dist/v6.10.2/node-v6.10.2-x64.msi)

4. Download and install RailsInstaller https://s3.amazonaws.com/railsinstaller/Windows/railsinstaller-3.3.0.exe

5. Configure git once the installer finishes using the new command prompt window.

7. Close and re-open "Command Prompt with Ruby on Rails" with administrator privileges. (Right-click on the application and hit "Run as administrator"). You should be at `C:\Sites`

6. `git clone https://github.com/scytherswings/Plex-Board.git`

7. `cd C:\Sites\Plex-Board`

8. `gem install bundler`

10. `bash serverSetup.sh`

11. Edit `server_config.yml` to use a valid IP on the machine. You can see the available IP addresses from `ipconfig`.
 This file was located under `C:\Sites\Plex-Board\server_config.yml`
  If you change `relative_root` then you will need to run `serverSetup.sh` again so that the generated
  assets match the expected paths.

12. `bash startServer.sh` To start the server!

Note that if you kill the server with `Ctrl+C` it seems to leave behind a process. You'll need to kill `ruby` in the Task Manager if you want to be able to restart the process. I will figure out a fix for this soon. Perhaps in the form of a restart script.
I'm going to put that note all the way at the top actually
Sean Vreeland
@seanvree
Apr 14 2017 01:20
yup
looks good
Andrew Newell
@scytherswings
Apr 14 2017 01:21
OK let me pull up that service install google doc
We can add the service stuff to the windows install
or a separate wiki page
I think it should be a separate page actually
Sean Vreeland
@seanvree
Apr 14 2017 01:22
yeah, how do you wanna do that?
yeah, prob
and then linked
Andrew Newell
@scytherswings
Apr 14 2017 01:22
yeah
Sean Vreeland
@seanvree
Apr 14 2017 01:23
never set up a github page before
but you can add subpages, right?
Andrew Newell
@scytherswings
Apr 14 2017 01:23
Yeah I think
well
Sean Vreeland
@seanvree
Apr 14 2017 01:23
link me to the google doc for inital instructions for windows
Andrew Newell
@scytherswings
Apr 14 2017 01:23
sort of
Link is up there ^^^^^
Sean Vreeland
@seanvree
Apr 14 2017 01:27
where's that whole blub about the cygwin GUI being fucked up
remeber?
the other night
Andrew Newell
@scytherswings
Apr 14 2017 01:28
ahh well you don't need that extension/plugin
so I removed it
Sean Vreeland
@seanvree
Apr 14 2017 01:28
waiiiiit
whhaaa
Andrew Newell
@scytherswings
Apr 14 2017 01:28
no point in making people fight with random unneeded stuff
It is in the doc history I'm sure
Sean Vreeland
@seanvree
Apr 14 2017 01:29
umm
Andrew Newell
@scytherswings
Apr 14 2017 01:29
google saves all the revisions
Sean Vreeland
@seanvree
Apr 14 2017 01:29
so, we don't need cygwin at all?
or you sitll have to install it, just not that pluging deal
Andrew Newell
@scytherswings
Apr 14 2017 01:30
Honestly
I'm not sure if it's needed at all
I think that Rails Installer covers the whole thing
I'll uninstall cygwin to see
Sean Vreeland
@seanvree
Apr 14 2017 01:30
wait, hold the phone on that
Andrew Newell
@scytherswings
Apr 14 2017 01:30
yeah?
Sean Vreeland
@seanvree
Apr 14 2017 01:30
dude, you have to understand that CYGWIN is what makes the entire lINUX comamnds work on windows
Not just rails
I'll have to think about that for a sec
Andrew Newell
@scytherswings
Apr 14 2017 01:31
That's true
you like to use stuff from the normal cmd.exe
Sean Vreeland
@seanvree
Apr 14 2017 01:31
so, for example:
Andrew Newell
@scytherswings
Apr 14 2017 01:31
which will use cygwin stuff
Sean Vreeland
@seanvree
Apr 14 2017 01:31
hang tight
hear me out
umm
yeah, dude
trust me
just have them install CYGWIN
trust me
Andrew Newell
@scytherswings
Apr 14 2017 01:32
YEah
Sean Vreeland
@seanvree
Apr 14 2017 01:32
easy step
Andrew Newell
@scytherswings
Apr 14 2017 01:32
That being said though, you still don't need that plugin which was a PITA to install
Sean Vreeland
@seanvree
Apr 14 2017 01:32
that allows you to RUN all bash/ sh commands from anywehre in windows in all Directories
right, that's fine
Andrew Newell
@scytherswings
Apr 14 2017 01:35
I think cygwin is only necessary if you want to run it as a service
which I assume most people would end up doing
Sean Vreeland
@seanvree
Apr 14 2017 01:38
true
but cygwin WILL help them if the y fuck up
say they aren't in the right dir
the commands should still work
it's just a safety net
no reason not to
but yes, NOHUP comes with cygwin
i'm actually reinstalling it now cuz the CU update overwrote the PATHs
funky
yeah, this is weird
the CU update fucks some shit up if you were yusing linux based apps on your box
ha ha
Andrew Newell
@scytherswings
Apr 14 2017 01:40
I don't like that update
lol
Sean Vreeland
@seanvree
Apr 14 2017 01:40
fucking windows tried to back door linux
yeah, either do I now
Andrew Newell
@scytherswings
Apr 14 2017 01:40
is it supposed to make running them easier though?
Sean Vreeland
@seanvree
Apr 14 2017 01:40
yeah
but
you have to change a bunch of shit
cuz all the scripts run diff now
as we saw above
like all the paths envirmoneth varibalbes changed
Andrew Newell
@scytherswings
Apr 14 2017 01:40
ohh
Sean Vreeland
@seanvree
Apr 14 2017 01:41
yeah
Andrew Newell
@scytherswings
Apr 14 2017 01:41
perhaps that was related yeah
damn
subtle changes
Sean Vreeland
@seanvree
Apr 14 2017 01:41
like NOHUP wasn't workingt for me
Andrew Newell
@scytherswings
Apr 14 2017 01:41
that's annoying
Sean Vreeland
@seanvree
Apr 14 2017 01:41
cuz windows CU didn't include it
so, I had to go back and reinstall cygwin to get nohup back
wiat NOW that makes sense!
ha, I see what they were doing
fuckers
so they diabled NOHUP and NSSM
ha
get that?
Andrew Newell
@scytherswings
Apr 14 2017 01:42
haha well
Sean Vreeland
@seanvree
Apr 14 2017 01:42
both of those programs do the exact smae thing
ha
assholes
Andrew Newell
@scytherswings
Apr 14 2017 01:42
that sounds a bit conspiracy-theoristy to me
but
Sean Vreeland
@seanvree
Apr 14 2017 01:42
no
it's not buddy
I see exacdtly wheat they were doing
I know MS
I actually used to work for them for a long time
they are tyring to stop programs from spoofing the system
it makes snese cuase it's a "small security" issue
Andrew Newell
@scytherswings
Apr 14 2017 01:43
ehh, alright
Sean Vreeland
@seanvree
Apr 14 2017 01:43
you're essentially running a fuck load of unsiged apps to run scripts in the background of your PC without any visual prompts
Andrew Newell
@scytherswings
Apr 14 2017 01:43
All i know is that I'm not going to be an early adopter
Sean Vreeland
@seanvree
Apr 14 2017 01:44
so I see where they are coming from
Andrew Newell
@scytherswings
Apr 14 2017 01:48
alright so
The upgrade script worked for you, right?
Sean Vreeland
@seanvree
Apr 14 2017 01:52
yeah also
that step about adding the cygwin path ?
yeah, that's actually imparitive
ha
just tested agian
confirmed
Andrew Newell
@scytherswings
Apr 14 2017 01:53
it didn't add it for you?
Sean Vreeland
@seanvree
Apr 14 2017 01:53
NOPE
Andrew Newell
@scytherswings
Apr 14 2017 01:53
DA FUUUUQQQQ
Sean Vreeland
@seanvree
Apr 14 2017 01:53
yeah
Andrew Newell
@scytherswings
Apr 14 2017 01:53
taht's bulllllshit
Sean Vreeland
@seanvree
Apr 14 2017 01:53
weird
Andrew Newell
@scytherswings
Apr 14 2017 01:53
how is cygwin useful without it being in the path
Sean Vreeland
@seanvree
Apr 14 2017 01:53
so, yeah, that's a confirmed step
Andrew Newell
@scytherswings
Apr 14 2017 01:53
Manaaaaaan
garbage installer
Sean Vreeland
@seanvree
Apr 14 2017 01:53
exactly
that fucking MSI is a joke
as we saw with the GUI
Andrew Newell
@scytherswings
Apr 14 2017 01:54
lol seriously
like a maze
Sean Vreeland
@seanvree
Apr 14 2017 01:54
but the actualy funcationlity of it is brilliant
lol
also
this is small but notebal
so the script doesn't overrite server_config if it's present, right?
Andrew Newell
@scytherswings
Apr 14 2017 01:56
correct
yours will be out of date
Sean Vreeland
@seanvree
Apr 14 2017 01:56
what if it's the old version tho
yeah
ha
coo
Andrew Newell
@scytherswings
Apr 14 2017 01:56
lol
yeah
So just FYI
Sean Vreeland
@seanvree
Apr 14 2017 01:56
wurd
ha
small detail
lol
Andrew Newell
@scytherswings
Apr 14 2017 01:56
my CHANGELOG.md tracks those changes
Sean Vreeland
@seanvree
Apr 14 2017 01:57
got it
oh fuck dude
oh nvmd
Andrew Newell
@scytherswings
Apr 14 2017 01:58
lol
damn
Sean Vreeland
@seanvree
Apr 14 2017 01:58
umm, yeah, when I did the manual pull
gotta device what branch
-b dev
derp
Andrew Newell
@scytherswings
Apr 14 2017 01:58
yeah just git checkout dev should work
Sean Vreeland
@seanvree
Apr 14 2017 01:58
roger
Andrew Newell
@scytherswings
Apr 14 2017 02:01
I had thought you were already on dev though
Sean Vreeland
@seanvree
Apr 14 2017 02:12
dude
FML
I having issues
Not creating pid files etc. since we're on Windows. Starting puma.
C:\RailsInstaller\Ruby2.3.0\bin\ruby.exe: No such file or directory -- /cygdrive/c/RailsInstaller/Ruby2.3.0/bin/bundle (LoadError)
Andrew Newell
@scytherswings
Apr 14 2017 02:13
thinking
Sean Vreeland
@seanvree
Apr 14 2017 02:13
wait,
Andrew Newell
@scytherswings
Apr 14 2017 02:14
hmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
Sean Vreeland
@seanvree
Apr 14 2017 02:14
how do I invoke the ruby cmd prompt FROM the windows CMD prompt?
Andrew Newell
@scytherswings
Apr 14 2017 02:14
do you mean that command prompt with ruby and rails?
Sean Vreeland
@seanvree
Apr 14 2017 02:14
yup
Andrew Newell
@scytherswings
Apr 14 2017 02:15
uhhhhhhh
Sean Vreeland
@seanvree
Apr 14 2017 02:15
no biggie
no worries
looks like I have some testing to do
I can't tell if the script is screwing up the nohup
or the windows update last night
something's not right
Andrew Newell
@scytherswings
Apr 14 2017 02:15
I think it might be an issue with where it's running from
Sean Vreeland
@seanvree
Apr 14 2017 02:15
YUP
exactly
that's exactly right
Andrew Newell
@scytherswings
Apr 14 2017 02:16
but the bash script is supposed to fix that
cd "$(dirname "$0")"
Sean Vreeland
@seanvree
Apr 14 2017 02:16
bash from where tho
from the windows CMD prompt, or the ruby cmd prompt?
Andrew Newell
@scytherswings
Apr 14 2017 02:16
^ That's right at the top of the script
Sean Vreeland
@seanvree
Apr 14 2017 02:16
see that makes a difference here
Andrew Newell
@scytherswings
Apr 14 2017 02:16
well
Sean Vreeland
@seanvree
Apr 14 2017 02:16
so bash from the ruby pormpt?
Andrew Newell
@scytherswings
Apr 14 2017 02:16
it needs to be able to run bundle exec
so if that is in your path
or i mean
if bundle --version works from that cmd
Sean Vreeland
@seanvree
Apr 14 2017 02:17
no
Andrew Newell
@scytherswings
Apr 14 2017 02:17
then I would think the rest of that command should work
Sean Vreeland
@seanvree
Apr 14 2017 02:17
no bundle exec
Andrew Newell
@scytherswings
Apr 14 2017 02:19
blob
let me try with normal CMD
Sean Vreeland
@seanvree
Apr 14 2017 02:20
okay
I got it
umm
so
check this:
then I'll smoke and you think about it
Andrew Newell
@scytherswings
Apr 14 2017 02:20

Ah, it hates me even more

C:\Sites\Plex-Board>bash startServer.sh
: invalid optionline 2: set: -
set: usage: set [-abefhkmnptuvxBCHP] [-o option-name] [--] [arg ...]
startServer.sh: line 3: $'\r': command not found
startServer.sh: line 4: cd: $'.\r': No such file or directory
startServer.sh: line 5: $'\r': command not found
startServer.sh: line 6: syntax error near unexpected token `$'in\r''
'tartServer.sh: line 6: `case "$(uname -s)" in

C:\Sites\Plex-Board>

Cygwin version of bash doesn't like the line endings, like we found out before

Sean Vreeland
@seanvree
Apr 14 2017 02:20
from the ruby rails cmd prompt:
C:\Sites>cd plex-board

C:\Sites\Plex-Board>bash startserver.sh

Not creating pid files etc. since we're on Windows. Starting puma.
Using host: 192.168.1.20 for puma.
Binding puma to: tcp://192.168.1.20:3000
*** SIGUSR2 not implemented, signal based restart unavailable!
*** SIGUSR1 not implemented, signal based restart unavailable!
*** SIGHUP not implemented, signal based logs reopening unavailable!
Puma starting in single mode...
* Version 3.8.2 (ruby 2.3.3-p222), codename: Sassy Salamander
* Min threads: 0, max threads: 32
* Environment: production
* Listening on tcp://192.168.1.20:3000
Use Ctrl-C to stop
- Gracefully stopping, waiting for requests to finish
=== puma shutdown: 2017-04-13 19:19:25 -0700 ===
C:\Sites\Plex-Board>
NOW, from the regual windows cmd prmpt:
Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. All rights reserved.

C:\Users\Administrator>bash
root@VREEPLEXDESKTOP:/mnt/c/Users/Administrator# startserver.sh
startserver.sh: command not found
root@VREEPLEXDESKTOP:/mnt/c/Users/Administrator#
Andrew Newell
@scytherswings
Apr 14 2017 02:21
whoah hold on
Sean Vreeland
@seanvree
Apr 14 2017 02:21
so the BASH cmd invokes from diff dirs
Andrew Newell
@scytherswings
Apr 14 2017 02:22
did you move the folder that startserver.sh is in?
Sean Vreeland
@seanvree
Apr 14 2017 02:22
no
Andrew Newell
@scytherswings
Apr 14 2017 02:22
what's your current working directory then?
those scripts have to be in the root of the rails app
Sean Vreeland
@seanvree
Apr 14 2017 02:22
good questions
from what point
right
exactly
so, imma smoke,
i was testing you
ha ha ha
Andrew Newell
@scytherswings
Apr 14 2017 02:23
you should be able to invoke the script from anywhere, as long as the script itself is in the root of the rails app
ok
lol
Sean Vreeland
@seanvree
Apr 14 2017 02:23
NOPE
that's what I"ve been saying bruh
Andrew Newell
@scytherswings
Apr 14 2017 02:23
anywhere meaning any directory
Sean Vreeland
@seanvree
Apr 14 2017 02:23
YOU HAVE to use the SH command in windows
Andrew Newell
@scytherswings
Apr 14 2017 02:23
not any command prompt
Sean Vreeland
@seanvree
Apr 14 2017 02:23
the bash commadns WILL NOT work
correction:
IF You use the BASH meathod
the NOHUP command WILL fail
and you won't be able to run as a service
BECAUSE:
like I said in my eamil a couple days ago
bash commands CANNOT run in the background
in windows
because bash commands have to be in the forefront in order to run
CYGWIN fixes that
that's the entire diff between bash and cygwin
CYGWIN converts the BASH commands to windows
THEN, you can run a nateive command in the backgroupd
backroungd, therefore enabling NOHUP to hid the window
so, if you use bash, it will work all day every day
UNTIL you try to log off your computer
Andrew Newell
@scytherswings
Apr 14 2017 02:26
hmm
Sean Vreeland
@seanvree
Apr 14 2017 02:27
yup
so, I"ll ahve to do a bit more testing
but essentially
becuase CYGWIN calls BASH form a diff root path,
than if you type BASH from a ruby prompt
that's what my screenshots were showing you above
so if you installed PG using the Ruby cmd prompt meathod the user has to know that NOHUP cannot run...meaning NSSM cannot run...meaning it can't run in the background
If you want to use as a service
You have to use SH commadns from the start
so that your PATHs are correct
when you run BASH
correction
you have to use SH commands from the start
Andrew Newell
@scytherswings
Apr 14 2017 02:29
is there a different way to run bash scripts to start linux services on windows in the background? this nohup business is incredibly hacky
Sean Vreeland
@seanvree
Apr 14 2017 02:29
so that your paths are correct when you get down to running NOHUP
not that I found
PRetty much NO
that's what I was saying before
Microsoft TOTALLY does not want this
you answered your won quesiton
from before when you said "sounds like a consipriacty theory"
doesn't so much now, does it?
it's like trying to take your iphone and flashing android on it
serioulsly
that's not an extracrattion
i mean, wer'e taking linux code and running it on windows
think about that
linux is open source
windows is NOT
Andrew Newell
@scytherswings
Apr 14 2017 02:31
This is why docker exists
lol
not gonna push it on you
Sean Vreeland
@seanvree
Apr 14 2017 02:31
I know bro
I see your point now
or you could just use python?
lol
remeber that first quesiont in reddit:
"why did you choose rails"
?
lol
Andrew Newell
@scytherswings
Apr 14 2017 02:32
you're hacking around the same issues with python dude
Sean Vreeland
@seanvree
Apr 14 2017 02:32
but I"m not gonna push it on you
lol
TRUUUUEEE
however, one small point:
Andrew Newell
@scytherswings
Apr 14 2017 02:32
there's nothing different about ruby
Sean Vreeland
@seanvree
Apr 14 2017 02:32
there is
adn it's this:
Andrew Newell
@scytherswings
Apr 14 2017 02:32
I'm simply writing bash scripts to set everyting up
Sean Vreeland
@seanvree
Apr 14 2017 02:33
when running pythong scripts, youre calling ONE script
dude, PB is like 3 scripts down
Andrew Newell
@scytherswings
Apr 14 2017 02:33
Fine
I'll rewrite all the bash scripts in ruby
Sean Vreeland
@seanvree
Apr 14 2017 02:33
like nohup calls cygwin, bygwin calls bash, bash call rails, rails call ruby
like ha ha ha
Andrew Newell
@scytherswings
Apr 14 2017 02:33
it should solve the cross-system dependency issues
Sean Vreeland
@seanvree
Apr 14 2017 02:33
see the diff
dude, I"m not getting on yoru case buddy
seriously, I'm not
just educating
dion't change anything yetg brotha
we good
again, this is LOW hanging fruit
well, kidna
Andrew Newell
@scytherswings
Apr 14 2017 02:35
I was simply using bash because it allows me to more easily make sure your ruby environment is configured properly
Sean Vreeland
@seanvree
Apr 14 2017 02:35
you have to assume that ANYONE who wants PB want it as a serivce
that's why inintally I was trying to tell you how important it was
because no one is gonna leave a command prompt open on their desktop
ya see?
for sure
and that's the root issue
I mean, most poeple tell me to fuck off when I ask "is there a windows" verison
I got it man, isn't my frist rodoea
BUT YOU Have to understnad....70% of the worlds computers are still windows man
I love open source just as much as the next guy
but you will get SOOOOO much nmore traffic from windows
like do wanna wrtie this for other hackers like us?
or the every day NOOB who wants to know if his server is running good?
ya know?
Andrew Newell
@scytherswings
Apr 14 2017 02:37
Yeah, well, this is why you get all the kinks out before 1.0.0
Sean Vreeland
@seanvree
Apr 14 2017 02:37
TRUUUEE
Andrew Newell
@scytherswings
Apr 14 2017 02:37
i want that release to be smooth
Sean Vreeland
@seanvree
Apr 14 2017 02:37
me too
Andrew Newell
@scytherswings
Apr 14 2017 02:37
Like
Sean Vreeland
@seanvree
Apr 14 2017 02:37
that's why we doing this bruh
Andrew Newell
@scytherswings
Apr 14 2017 02:37
yeah
for sure
Sean Vreeland
@seanvree
Apr 14 2017 02:37
first impressions are everything
Andrew Newell
@scytherswings
Apr 14 2017 02:37
agreed
gotta make this install process easy
Sean Vreeland
@seanvree
Apr 14 2017 02:37
for sho
exactly
so, andyway
Andrew Newell
@scytherswings
Apr 14 2017 02:37
otherwise people just fuck off
lol
Sean Vreeland
@seanvree
Apr 14 2017 02:37
yup
so
Andrew Newell
@scytherswings
Apr 14 2017 02:37
that's what I do
Sean Vreeland
@seanvree
Apr 14 2017 02:38
before you chagne code
I gotta test from the top with SH to see if it work
I"m 99 sure that's the issue
but I don't want you to rewrite for nothign
there MAY be a small hack in there somehwere to change the DIRs somehow
but again buggy
real quick and then I'll shut up
when making cross platforms for windows:
"IF IT DOESN"T RUN IN A DOS PROMPT - IT WON"T WORK"
remember that
srlsy
Andrew Newell
@scytherswings
Apr 14 2017 02:39
for turning it into a service yeah
Sean Vreeland
@seanvree
Apr 14 2017 02:40
lol
buddy
Andrew Newell
@scytherswings
Apr 14 2017 02:41
btw, looks like running linux apps should actually be a lot easier with windows 10 https://gorails.com/setup/windows/10
Sean Vreeland
@seanvree
Apr 14 2017 02:41
who's gonna leave a fucking bash prompt open on their windows desktop?
no one
that's why NSSM is fucking the greatest hack ever
and NSSM hides .PY scripts nativly
like for sonarr, radarr and such, it's like a 3 min setup
litearlly
it only goes 2 scripts deep
we're going like 5
Andrew Newell
@scytherswings
Apr 14 2017 02:43
Well
I never intended to support windows
Sean Vreeland
@seanvree
Apr 14 2017 02:43
dude, for sure
Andrew Newell
@scytherswings
Apr 14 2017 02:43
SSE isn't even implemented in Internet Explorer
Sean Vreeland
@seanvree
Apr 14 2017 02:43
I agree brotha
Andrew Newell
@scytherswings
Apr 14 2017 02:43
the core of the project's realtime updates
Sean Vreeland
@seanvree
Apr 14 2017 02:43
but I'll revert to my commend above
dude, AND
i told you buddy when we started this:
"if you wanna drop this, just tell me"
rmember that?
like I said brother
you're the smart one, not me
I"m just a GUY who sees HUGE potentioal
HUGE
like NSSM huge
most computers in the world are Windows. Period
it's jus that simple
Andrew Newell
@scytherswings
Apr 14 2017 02:44
I'll see what I can do
maybe package the app as a .exe
Sean Vreeland
@seanvree
Apr 14 2017 02:45
dont take offense brother
Andrew Newell
@scytherswings
Apr 14 2017 02:45
who knows
Sean Vreeland
@seanvree
Apr 14 2017 02:45
well, we did that
well, kidna did that
ha
Andrew Newell
@scytherswings
Apr 14 2017 02:45
no, the whole thing
Sean Vreeland
@seanvree
Apr 14 2017 02:45
hacked it
Andrew Newell
@scytherswings
Apr 14 2017 02:45
like
one bigass .exe
Sean Vreeland
@seanvree
Apr 14 2017 02:45
right, there ya go
right
I can maybe start looking into that
Sean Vreeland
@seanvree
Apr 14 2017 02:45
like, that would solve all our problems
Andrew Newell
@scytherswings
Apr 14 2017 02:45
loking into this right now
yes
Sean Vreeland
@seanvree
Apr 14 2017 02:45
dude, it's actally not that hard
Andrew Newell
@scytherswings
Apr 14 2017 02:46
I actually like the idea a lot better
because then I don't have to worry about setting up cygwin and shit
Sean Vreeland
@seanvree
Apr 14 2017 02:46
you just have to understand whatever linux based scritps you run, it HAS to run in a cmd prompt. AKA .exe
the entire win platform is based on .exe
i'm sure you know that
true
anyway
igotta get oing
don't change anyting right now as far was that I would recommend
it's up to you
get a fucking NAME!
ha
Andrew Newell
@scytherswings
Apr 14 2017 02:47
Namign is harrrrddddd
Sean Vreeland
@seanvree
Apr 14 2017 02:53
also, one last thing
if you can get eveything into a .bat
then converting to .exe is easy
witht hat program we have in the google doc
so don't focus on .exe part too much
that program does the hard stuff for you
that's why cygwin is so important
Andrew Newell
@scytherswings
Apr 14 2017 02:54
Yeah... argh
Sean Vreeland
@seanvree
Apr 14 2017 02:54
it takes all the SH commadns and runs them
in a regulare windows format
ie c:\dklagja\alkaglka
none of this /dkdjs/adsffkljga/fkljd
shit that win doesn't understand
that's what we are seeing here
it's trying to use both /dss/sdgfs/gslf
and c:\lkshds\adlkglkf
so it's installing dependancies into diff dirs
one last thing:
lol as far as moivng fowarard on PB
IF we can do the script with SH and get it out
that's coo
then change all the backend code to package it into a nice .exe
later
up to you
i mean, the old version still worked best
Andrew Newell
@scytherswings
Apr 14 2017 02:58
Yeah, it's hard to maintain all these different dependencies on various systems
Sean Vreeland
@seanvree
Apr 14 2017 02:58
as far as commands before you changed it to BASH
Andrew Newell
@scytherswings
Apr 14 2017 02:58
i didn't change any commands inside the scripts though
i only changed logic
Sean Vreeland
@seanvree
Apr 14 2017 02:58
right
anyway, gotta jet
later brother
good stuff
Andrew Newell
@scytherswings
Apr 14 2017 02:59
aiight
thanks man
cya
Andrew Newell
@scytherswings
Apr 14 2017 13:06
@seanvree I've got today off so if you want to work on stuff let me know
Andrew Newell
@scytherswings
Apr 14 2017 17:10
test
2017-04-14 13:09:17.969 [pid:29779] [INFO ] Making Plex API call to: https://172.16.4.21:32400/library/recentlyAdded (models/plex_service.rb:59:in `plex_api')
2017-04-14 13:09:28.407 [pid:29779] [INFO ] Getting PlexSessions for PlexService: plex (models/plex_service.rb:92:in `get_plex_sessions')
2017-04-14 13:09:28.408 [pid:29779] [INFO ] Making Plex API call to: https://172.16.4.21:32400/status/sessions (models/plex_service.rb:59:in `plex_api')
2017-04-14 13:09:28.434 [pid:29779] [INFO ] Getting PlexRecentlyAdded for PlexService: plex (models/plex_service.rb:186:in `get_plex_recently_added')
2017-04-14 13:09:28.435 [pid:29779] [INFO ] Making Plex API call to: https://172.16.4.21:32400/library/recentlyAdded (models/plex_service.rb:59:in `plex_api')
2017-04-14 13:09:38.837 [pid:29779] [INFO ] Getting PlexSessions for PlexService: plex (models/plex_service.rb:92:in `get_plex_sessions')
2017-04-14 13:09:38.838 [pid:29779] [INFO ] Making Plex API call to: https://172.16.4.21:32400/status/sessions (models/plex_service.rb:59:in `plex_api')
2017-04-14 13:09:38.885 [pid:29779] [INFO ] Getting PlexRecentlyAdded for PlexService: plex (models/plex_service.rb:186:in `get_plex_recently_added')
2017-04-14 13:09:38.886 [pid:29779] [INFO ] Making Plex API call to: https://172.16.4.21:32400/library/recentlyAdded (models/plex_service.rb:59:in `plex_api')
Sean Vreeland
@seanvree
Apr 14 2017 21:04
reverse proxy?
Andrew Newell
@scytherswings
Apr 14 2017 23:11
Yeah so I've been working on reverse proxy stuff, don't pull dev yet, I broke some stuff