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
vivus has joined #amber
vivus has quit [Quit: Leaving]
<FromGitter> <damianham> @otremblay_gitlab ( @drujensen ) In that case I would be inclined to run the crystal/amber app on Ubuntu 18.04 in a docker container. My workstation is Ubuntu 18.04 and I edit all my code in VScode on the workstation and run all the applications in 5 docker containers (I have a 32GB RAM laptop so no performance issues) and the containers running Amber are based on crystallang/crystal:0.33.0 with crystal already
<FromGitter> ... installed or on ubuntu:18.04 and I install crystal in the Dockerfile. Saving a file in VScode rebuilds the apps in the containers as they are mounted volumes not copied. Docker is available for Mac based on VirtualBox I think. I use docker-compose to build and run the containers.
<FromGitter> <drujensen> Sounds like a nice setup. I do something similar for work but it’s ruby and I prefer vim. Docker has a bit of a learning curve so I wouldn’t recommend it to everyone. If you plan on deploying using docker or have this knowledge then it makes more sense.
<FromGitter> <drujensen> Plus you can avoid environment issues. 😀
<FromGitter> <damianham> There is already a Dockerfile and docker-compose.yml file in the app template so it is pretty easy to get going - although I would suggest changing the Dockerfile to use a crystal docker image to obviate the need to create an amber image for each release. I have something like this; ⏎ ⏎ ```code paste, see link``` [https://gitter.im/amberframework/amber?at=5e7dc9784a4f8e0a100b2f94]
_whitelogger has joined #amber
<FromGitter> <drujensen> yes, very aware since I wrote them. Glad you like them. Here is the one for Amber that you can build off of instead. It includes the libraries needed for the databases and nodejs. It’s recommended to build up your docker files in this manner. https://github.com/amberframework/amber/blob/master/Dockerfile
<FromGitter> <drujensen> I used to have dochub automatically build the Amber image but they had issues between my private company creds and the public ones wiping each other out. Maybe I will attempt using the github actions and new repository instead.
<FromGitter> <drujensen> I recommend building off of the Amber docker image. This eliminates the need to include the needed libraries for Amber in your base Dockerfile.
<FromGitter> <drujensen> ```code paste, see link``` [https://gitter.im/amberframework/amber?at=5e7e0bea516b9349cf00a349]
<FromGitter> <drujensen> The other thing the one in the template does is cleans out the node_modules which fixes issues on Windows or Mac when the node modules in your project have natively compiled libraries that conflict with Linux.
<FromGitter> <drujensen> Also might address issues if you have a different flavor of linux. It depends on the node modules included and how they link to the native libraries.
<FromGitter> <Yashko> Hi guys! I'm trying out amber from the official guide. Trying to serve "html" file, and getting following error: `Unsupported template engine for extension: "html"` How to fix it?
<FromGitter> <Yashko> And also i couldn't find official API docs for Amber
robacarp has quit [Ping timeout: 265 seconds]
robacarp has joined #amber
robacarp is now known as Guest66303
<FromGitter> <drujensen> You can put static html files in the /public folder.
<FromGitter> <drujensen> Documentation can be found here: https://amberframework.org
<FromGitter> <Yashko> Thanks!
<FromGitter> <Yashko> Also ran into another issue. I've created a model, and then updated model file will additional column. How to apply it to database?