<FromGitter>
<mixflame> and no one has made anything like it
<FromGitter>
<mixflame> i couldn't fix the Time::Kind::Utc error on my own because it looks like they're using some kind of undocumented functionality
<FromGitter>
<mixflame> not sure if it still exists, passing a Timespec to Time.new
<FromGitter>
<elorest> Hmmm. Look at how PG fixed it.
<FromGitter>
<elorest> I'm not going to use mongo again otherwise I might look at that.
feepbot has quit [Ping timeout: 244 seconds]
feepbot has joined #amber
<FromGitter>
<drum445> @elorest cookie based sessions don't store data, they usually just store the session ID in the cookie and that is used to retrieve the actual session data from disk/db
<FromGitter>
<drum445> @mixflame if you look in the PRs there is a branch that works with the latest
<FromGitter>
<drum445> Seems like the owner isn't accepting PRs atm, so that lib is dead for now
<FromGitter>
<mixflame> thanks @drum445
<FromGitter>
<mixflame> hello friends
<FromGitter>
<mixflame> I got past the mongo.cr issues with 0x17's branch
<FromGitter>
<mixflame> now im hitting this ```ld: library not found for -lssl (this usually means you need to install the development package for libssl) ⏎ clang: error: linker command failed with exit code 1 (use -v to see invocation) ⏎ Error: execution of command failed with code: 1: `cc "${@}" -o '/Users/jonathansilverman/livepost/livepost' -rdynamic -lyaml -lz `command -v pkg-config > /dev/null && pkg-config --libs
<FromGitter>
<mixflame> this will work good as an advanced example now
<FromGitter>
<mixflame> I will make sure it all works and fix production mode and put up an example site again
<FromGitter>
<mixflame> does anyone know a free place I can host it that will run redis, mongo and amber?
<FromGitter>
<mixflame> what did ```amber.settings.env``` change to?
<FromGitter>
<elorest> @drum445 with sessions you have multiple ways of storing data. db_store, memory_store, cookie_store, redis_store. Ten years ago storing sessions in the db was really popular but lead to a lot of issue like storing way too much in your sessions. Best practice in Rails, Phoenix, Amber is currently to use cookie store which stores the data in encrypted cookies. You're obviously limited to how much data you can store
<FromGitter>
... though. This isn't considered a problem as long as you don't go storing large values or huge strings.
<FromGitter>
<elorest> Probably Amber.env
<FromGitter>
<bajro17> @mixflame maybe you can post on Heroku
<FromGitter>
<mixflame> do they support crystal?
<FromGitter>
<bajro17> yes
<FromGitter>
<bajro17> where are you from?
<FromGitter>
<mixflame> denver
<FromGitter>
<mixflame> colorado
<FromGitter>
<bajro17> try also sign up on digital ocean
<FromGitter>
<mixflame> well the site stole 5 bucks from me
<FromGitter>
<mixflame> ill try heroku
<FromGitter>
<mixflame> everything is broken on digital ocean
<FromGitter>
<mixflame> the site, the signup, the support portal
<FromGitter>
<Blacksmoke16> 😐
<FromGitter>
<mixflame> yeah
<FromGitter>
<mixflame> lol
<FromGitter>
<mixflame> i got into heroku
<FromGitter>
<bajro17> are you deploy it seccessful
<FromGitter>
<bajro17> I really dont know long time I use digtalocean I never have problem
<FromGitter>
<mixflame> not yet
<FromGitter>
<mixflame> what's the correct way to specify amber environment?
<FromGitter>
<mixflame> nvm
<FromGitter>
<mixflame> looks like heroku lacks libmongo-c
<FromGitter>
<mixflame> i cant run the app without tht
<FromGitter>
<Blacksmoke16> cant you just install it?
<FromGitter>
<mixflame> trying now
<FromGitter>
<mixflame> uh oh
<FromGitter>
<mixflame> heroku wants you to use mLab to store your data
<FromGitter>
<mixflame> I use mongo.cr which uses the C driver to access Mongo which is probably faster
<FromGitter>
<mixflame> heroku isn't gonna work
<FromGitter>
<Blacksmoke16> welp
<FromGitter>
<mixflame> im gonna ask a friend if he can host me a free 4gb ram server
<FromGitter>
<0x2C6> Hi. How can use ambers built in methods in another crystal project? for example I'm trying to write a library for amber and in the code it should redirect the person to another page? I include Amber::Controller::Helpers::Redirect it sees the method but throw another error which is undefinend method, defined in private class. How can I call redirect_to ?
<FromGitter>
<sam0x17> @mixflame I'm pretty sure you could set up a docker image for use with a custom heroku buildpack that would do what you want
<FromGitter>
<sam0x17> also beware of datanoise's mongo.cr branch.. it is way out of date you will want to use one of the forks
<FromGitter>
<mixflame> nah its fine a friend set up a server for me
<FromGitter>
<mixflame> yeah im already using 0x17's fork
<FromGitter>
<sam0x17> oh thats me
<FromGitter>
<sam0x17> lol
<FromGitter>
<mixflame> oh
<FromGitter>
<mixflame> lol
<FromGitter>
<mixflame> thanks for making that
<FromGitter>
<sam0x17> np
<FromGitter>
<sam0x17> someone made another one recently that I think is more up to date
<FromGitter>
<sam0x17> mine is probably going to rot eventually
<FromGitter>
<sam0x17> I'll dig through my github notifications and see if I can find
<FromGitter>
<sam0x17> huh I actually have no idea where it went
<FromGitter>
<sam0x17> but its in one of the pull request discussions
<FromGitter>
<sam0x17> for either datanoise's repo or mine
<FromGitter>
<mixflame> no worries
<FromGitter>
<mixflame> how do I use Amber SSL?
<FromGitter>
<mixflame> is it documented?
<FromGitter>
<mixflame> it looks simple but i cant find docs