faustinoaq changed the topic of #amber to: Welcome to Amber Framework community! | https://amberframework.org | Developer happiness, productivity and bare metal performance | GH: https://github.com/amberframework | Docs: https://docs.amberframework.org | Gitter: https://gitter.im/amberframework/amber | IRC Logger: https://irclog.whitequark.org/amber | Amber::Server.start
wontruefree has quit [Quit: bye]
wontruefree has joined #amber
wontruefree has quit [Quit: bye]
feepbot has quit [Ping timeout: 240 seconds]
feepbot has joined #amber
marenz has joined #amber
_whitelogger has joined #amber
wontruefree has joined #amber
wontruefree has quit [Quit: bye]
wontruefree has joined #amber
<FromGitter> <valamorgon> I've just upgraded my amber to 8.0 and my crystal to 25.1
<FromGitter> <valamorgon> when I try to open my index page I don't have any error on my console
<FromGitter> <valamorgon> but on my browser I got this
<FromGitter> <valamorgon> The request was not found. GET - /
<FromGitter> <valamorgon> I don't know how to debug
<FromGitter> <valamorgon> is there anyone who had the same issue?
<FromGitter> <valamorgon> ⏎
<FromGitter> <valamorgon> just in case any of you guys have the same problem
<FromGitter> <valamorgon> after I upgrade, I realize routes will not work if you put ⏎ routes :static do before ⏎ routes :web do
<FromGitter> <valamorgon> it was working just fine, but after upgrade I write web routes first, static routes later
<FromGitter> <l1meon> Hello, just installed crystal 25.1 and amber. ⏎ When I'm running `shards install` ⏎ I get this error: ⏎ ⏎ ```code paste, see link``` [https://gitter.im/amberframework/amber?at=5b3e70699b82c6701ba5b0f8]
<FromGitter> <l1meon> Now I've tried to reinstall amber from https://docs.amberframework.org/amber/guides/installation#from-source ⏎ And this is what I get: ⏎ ⏎ ```code paste, see link``` [https://gitter.im/amberframework/amber?at=5b3e726281816669a433c650]
<FromGitter> <l1meon> Same error with this code: ⏎ ⏎ ```code paste, see link``` [https://gitter.im/amberframework/amber?at=5b3e72f8a99e1e52b7197736]
<FromGitter> <Blacksmoke16> sounds like you are missing a dependency
<FromGitter> <Prutheus> Hey @faustinoaq how are you? How is it going?
<FromGitter> <l1meon> I've got all dependencies installed.
<FromGitter> <Prutheus> I know that I can get the ip via request.client_ip .. but this method is not defined?
<FromGitter> <l1meon> Is there something like --trace in Ruby/Rails?
<FromGitter> <Blacksmoke16> not sure
<FromGitter> <Blacksmoke16> it isnt even building so makes me think its some system level dep vs something with amber
<FromGitter> <Blacksmoke16> hmm
<FromGitter> <l1meon> tried to remove the dependency from shard.yml the error is within next one, so I guess is something with dependencies/github
<FromGitter> <l1meon> The strange thing is, yesterday I got amber working and created a new project but couldn't do `shards install`, now even `make` not working.
<FromGitter> <Blacksmoke16> what os you on?
<FromGitter> <l1meon> Ubuntu 16.04
<FromGitter> <Blacksmoke16> https://docs.amberframework.org/amber/guides/installation#for-debian-and-ubuntu and you do have these installed?
<FromGitter> <l1meon> yes ⏎ ⏎ ```code paste, see link``` [https://gitter.im/amberframework/amber?at=5b3e822c7e23133ecb351c9e]
<FromGitter> <Blacksmoke16> huh
<FromGitter> <Blacksmoke16> try deleting ~/.cache/crystal and ~/.cache/shards
<FromGitter> <Blacksmoke16> also what crystal version you on?
<FromGitter> <Blacksmoke16> 1) 1?
<FromGitter> <l1meon> yes
<FromGitter> <l1meon> ```code paste, see link``` [https://gitter.im/amberframework/amber?at=5b3e82d0a99e1e52b719a2c4]
<FromGitter> <Blacksmoke16> cool cool
<FromGitter> <l1meon> hmm, I didn't think about deleting cache..
<FromGitter> <l1meon> It seems now is working, thanks :)
<FromGitter> <Blacksmoke16> \o/ nice
<FromGitter> <Blacksmoke16> np
<FromGitter> <l1meon> I don't remember to mess with the cache working with ruby and rails. Is this something specific to crystal/amber ?
<FromGitter> <Blacksmoke16> wellll
<FromGitter> <Blacksmoke16> how do you see what shards version you are on?
<FromGitter> <l1meon> idk, how do I? running shards -v isn't ok
<FromGitter> <Blacksmoke16> no idk either :P im asking
<FromGitter> <l1meon> running this command outputs something like this: ⏎ ⏎ ```code paste, see link``` [https://gitter.im/amberframework/amber?at=5b3e84a6a99e1e52b719a60e]
<FromGitter> <Blacksmoke16> thats the versions of the stuff in shards.yml i think
<FromGitter> <Blacksmoke16> `shards --version`
<FromGitter> <l1meon> Yep, just find out this is the way
<FromGitter> <l1meon> :)
<FromGitter> <l1meon> shards --version ⏎ Shards 0.8.1 [0147a56] (2018-06-27)
<FromGitter> <Blacksmoke16> cool
<FromGitter> <l1meon> How close is amber to rails, I mean by features/completed, could I replace already rails with amber?
<FromGitter> <Blacksmoke16> im not sure sorry
<FromGitter> <Blacksmoke16> dont actually use it, am sure someone else here knows hto
<FromGitter> <l1meon> ok, I'll still will try to create a mini project with it and see if it has enough for my needs. ⏎ Was looking and at the Lucky framework too, but amber is kinda what I get used to :)
wontruefree has quit [Quit: bye]
<FromGitter> <Prutheus> https://github.com/amberframework/amber/commit/82eecb23d23094457f9ee8c14d2db7e102d166f1 . ... but calling client_ip in my controller just gives me no ip back
<FromGitter> <Prutheus> what am i doing wrong?
<FromGitter> <Blacksmoke16> @Prutheus im not sure
<FromGitter> <Blacksmoke16> @l1meon sounds like a plan
<FromGitter> <Prutheus> @Blacksmoke16 I head that I may need a proxy behind it?
<FromGitter> <Blacksmoke16> maybe? im not super familiar with this kidna stuff
<FromGitter> <Prutheus> hm, in ruby rails, the ip is logged per default via devise
<FromGitter> <Blacksmoke16> :shrug:
<FromGitter> <l1meon> @Prutheus in rails if used local you wold get local ip with request.remote_ip, you could use ngrok to simulate a domain like
<FromGitter> <Prutheus> huh sorry .i dont understand what you are talking
<FromGitter> <l1meon> @Prutheus from the link you gave: ⏎ ⏎ 1) It looks into configured header names (default: "X-Forwarded-For"), ⏎ finds the first header that exists, and takes its last value [https://gitter.im/amberframework/amber?at=5b3e896abd92d80782973578]
<FromGitter> <l1meon> You need a proxy like Nginx
<FromGitter> <Prutheus> but not in rails?
<FromGitter> <l1meon> in rails too, that's what I meant by running locally you would get a response of 127.0.0.1, so to test your ip locally you would use something like https://ngrok.com/
<FromGitter> <elorest> There are multiple headers that you could potentially get that from. ⏎ https://stackoverflow.com/questions/527638/getting-the-client-ip-address-remote-addr-http-x-forwarded-for-what-else-coul
<FromGitter> <Prutheus> but when i run my rails app on a server, i still get ip's , i dont need nginx there
<FromGitter> <l1meon> How do you get the ip's? You're running an cli application ?
<FromGitter> <Prutheus> i run `rails server` and devise (auth plugin) can gather the ip's of the sign in attemps
<FromGitter> <l1meon> I guess you're still running nginx/apache ? Because https://stackoverflow.com/questions/32708971/rails-devise-and-user-ip-address ⏎ Devise is using request.remote_ip
<FromGitter> <Prutheus> no i do not. i have a plain vps where i just installed ruby and rails
wontruefree has joined #amber
wontruefree has quit [Ping timeout: 265 seconds]
wontruefree has joined #amber
wontruefree has quit [Ping timeout: 240 seconds]
wontruefree has joined #amber
wontruefree has quit [Ping timeout: 265 seconds]
wontruefree has joined #amber
marenz has quit [Ping timeout: 260 seconds]