Ruby takes a while to install >.>
@spiderrobotpig yes it does :P
@ashkitten The build failed, so we have to do it again
@spiderrobotpig what was the error?
@ashkitten Failed dependencies from the looks of it. Installed them and hopefully it'll work this time?
@spiderrobotpig alright :)
@ashkitten spiderrobotpig@spiderrobotpig-Aspire-F5-573G:~$ sudo gem install bundler
Successfully installed bundler-1.14.6
Parsing documentation for bundler-1.14.6
Done installing documentation for bundler after 2 seconds
1 gem installed
spiderrobotpig@spiderrobotpig-Aspire-F5-573G:~$ bundle install --deployment --without development test
Could not locate Gemfile
Blep
@spiderrobotpig Are you using the version of ruby that you just built?
@ashkitten We think so?
We installed the ruby, then ran the code again
@spiderrobotpig Add `exec "$(rbenv init -)"` (without the backticks) to your .bashrc and `source .bashrc`
@ashkitten FOUND IT BRB
@ashkitten Nevermind we actually didn't apparently
@spiderrobotpig What are you stuck on now?
@ashkitten "Add `exec "$(rbenv init -)"` (without the backticks) to your .bashrc and `source .bashrc`"
this part you said. Thought we found .bashrc but we didn't
@spiderrobotpig sorry - ~/.bashrc
@ashkitten Our terminal is just kinda force closing now.
we may need to reinstall Ubuntu
@spiderrobotpig oh no i'm sorry >.<
uh, try switching to a TTY? ctrl+alt+f2
@ashkitten smoking cos annoyed.
Will try when we get back in
@ashkitten <3 thanks for putting up with us
@spiderrobotpig we like you <3
@ashkitten tty1 and tty2 are stuck in login loops :/
Will try editing bashrc outside terminal to see if that helps
@spiderrobotpig yeah that's probably best
@ashkitten Yeah, it was the ruby thing.
As soon as we removed that everything is back to normal
@spiderrobotpig hmm. I wonder if you put it in correctly.
@ashkitten exec "$(rbenv init -)"
We put that at the end
@spiderrobotpig can you try executing that in the terminal?
@ashkitten Oh that looked like it did something
@ashkitten ruby 2.3.3p222 (2016-11-21) [x86_64-linux-gnu]
That looks good, but the gem thing is still happening
@spiderrobotpig That's part of the configuration that goes in /etc/nginx/nginx.cfg
@ashkitten we don't have nginx.cfg
we do have nginx.conf
@spiderrobotpig oh I goofed it's nginx.conf
@spiderrobotpig Don't bother with docker if you have no experience with it :)
@ashkitten That's a relief
@ashkitten So, we dunno how important this is, but it says peer authentification failed when we try to log in as mastodon
@spiderrobotpig Peer authentication failed? when you do sudo su - mastodon?
@ashkitten no, when we try sudo -u postgres psql -U mastodon
when we try sudo su - mastodon, it says there's no password
@spiderrobotpig I'm really confused, and without access to the system I'm not sure how well I can help
@ashkitten How would we give you access to the system? It's a fresh install basically so there's not really even anything on it
@ashkitten WE THINK WE GET IT
@ashkitten Okay, now we're stuck cos the Ruby is the wrong version cos we need 2.4.1.
So we're going to try and get that fixed.
PROGRESS
@ashkitten Yah, but it's weird cos it's already installed?
So do we update the nginx.conf?
@spiderrobotpig If you've executed the rbenv init line and you've installed the ruby version and you're in the project directory, rbenv should pick up the version you want
@ashkitten Maybe we need to install it again in that directory?
Gonna try that
@ashkitten It's still giving us the 2.3.3 error OMG
@spiderrobotpig try doing rbenv local 2.4.1
@ashkitten Nope >.>
Tried rbenv global too
@spiderrobotpig yikes, idk...
@ashkitten found something we're going to figure it out
@spiderrobotpig how's it going?
@ashkitten Not great tbh
Still giving us the wrong ruby version even though we've modified everything
@spiderrobotpig Try uninstalling the system ruby
@ashkitten We can do that?
How
@spiderrobotpig Probably sudo apt-get remove or something
@ashkitten It's working now for some reason
@spiderrobotpig let me know when you get it up and running :)
@ashkitten Okay, last question we think?
What are we supposed to do with the email thing?
@spiderrobotpig Email thing... Set up an account somewhere (I used sendgrid.com) and copy the SMTP info from
@ashkitten Also, rake secret isn't working, and we dunno what to do for the bottom 3
# Service dependencies
REDIS_HOST=redis
REDIS_PORT=6379
DB_HOST=db
DB_USER=mastodon
DB_NAME=mastodon
DB_PASS=SHHHHHHHHH
DB_PORT=5432 (Dunno this?)
# Federation
LOCAL_DOMAIN=witches.academy
LOCAL_HTTPS=true
# Application secrets
# Generate each with the `rake secret` task (`docker-compose run --rm web rake $
PAPERCLIP_SECRET=
SECRET_KEY_BASE=
OTP_SECRET=
@spiderrobotpig DB_PASS should be blank. Use bundle exec rake secret instead.
@spiderrobotpig note: two separate instructions, not to be mixed
@spiderrobotpig You need to create it :)
@ashkitten We're getting a 503 occasionally is that good?
otherwise we goofed somewhere
@spiderrobotpig 503 where?
@ashkitten when we try to access the site
@ashkitten http://witches.academy/
it seems to be very not working
@ashkitten Although it is linking when we add it now which is interesting
@spiderrobotpig @ashkitten you need to create it
@ashkitten @spiderrobotpig sorry, that was old
@spiderrobotpig for the nginx.conf you just replace whatever's in the http block with the bit in the tutorial
@ashkitten That makes sense. We'll do that while the rest of this is working again
@spiderrobotpig Probably have to setup a VPN... not sure how much work that'd be... We're sorry for making this more than it needs to be.
@ashkitten And when we do this:
sudo -u postgres psql -U mastodon -h 127.0.0.1
It says the database doesn't exist
@spiderrobotpig ah that's neither 2.3.1 or 2.4.1, so it's probably the system version. Try executing it in the mastodon project directory.
@ashkitten Are we goofing something with docker? because the nginx thing at the beginning makes no sense to us and docker is equally as confusing and they weren't in the other tutorial