| [22:57:40] | * JustTB1 has joined #farmos |
| [22:59:30] | * JustTB has quit (Ping timeout: 272 seconds) |
| [06:59:19] | * JustTB1 has quit (Ping timeout: 260 seconds) |
| [07:15:44] | * JustTB has joined #farmos |
| [08:11:02] | * JustTB has quit (Ping timeout: 256 seconds) |
| [08:25:46] | * JustTB has joined #farmos |
| [08:49:31] | <shmida[m]> | <mstenta[m] "https://github.com/mstenta/farm_"> thanks! |
| [08:54:36] | <shmida[m]> | I just completed install the FarmOS on Docker desktop for Windows. how shold I work? one prod containers for real data and second dev containers for triyng things out? there is any differance between the dev containers and the prod containers? |
| [08:57:54] | <shmida[m]> | another quastion, on the general map area, when I replace the mapbox some with google maps, it gives me this error: "Oops! Something went wrong. `This page didn't load Google Maps correctly. See the JavaScript console for technical details.` is it because the google map API key i entered was not correct? or any other reson? |
| [08:58:20] | <mstenta[m]> | shmida: the `farmos/farmos:dev` image inherits from the `farmos/farmos:7.x-1.x` image, and adds the following on top: |
| [08:58:20] | <mstenta[m]> | - Installs XDebug |
| [08:58:20] | <mstenta[m]> | - Installs Drush |
| [08:58:47] | <mstenta[m]> | ACTION sent a long message: < https://matrix.org/_matrix/media/r0/download/matrix.org/TPwJvYxImWWwQYsO... > |
| [08:59:22] | <mstenta[m]> | Do you know how to check your browser's console? |
| [08:59:26] | <mstenta[m]> | It is probably an API key issue |
| [08:59:42] | <mstenta[m]> | https://developers.google.com/maps/documentation/javascript/get-api-key |
| [09:00:15] | <shmida[m]> | thanks alot i will chek |
| [09:00:27] | <shmida[m]> | is it important to know drush for devoloping in drupal? |
| [09:00:44] | <mstenta[m]> | no, but it is helpful |
| [09:01:27] | <mstenta[m]> | it is just a command line tool with features for enabling modules, clearing caches, etc |
| [09:01:38] | <mstenta[m]> | but those things can be done through the Drupal UI without Drush too |
| [09:02:06] | <mstenta[m]> | we also use Drush Make to build the farmOS 7.x-1.x codebase... but you most likely won't need to mess with that at all |
| [09:02:36] | <mstenta[m]> | In farmOS 2.x we are using Composer... so Drush Make is deprecated |
| [09:04:22] | <shmida[m]> | grate! I used Farmos before without Docker and it was a mistake (database issues), now I hope it will be better. hope i could help with this grate project. im a vegetable grower from israel that start to code |
| [09:05:04] | <mstenta[m]> | awesome! |
| [10:56:42] | * skalakm[m] has joined #farmos |
| [11:04:11] | <skalakm[m]> | Hi, I'm trying to set up a custom farmos instance. I know how to do it through the drupal/farmos gui, but I would like to do it through an automated process e.g. a bash script. Can you point me in the diriection? If it matters, I need to change the file system setup, install custom modules, and import a bunch of data from csv files. |
| [11:06:25] | <mstenta[m]> | Hi skalakm |
| [11:06:32] | <mstenta[m]> | Did you see my previous replies, by any chance? |
| [11:09:09] | <skalakm[m]> | In the IRC? Sorry, no. FreeNode has been uncooperative. I wasn't even sure I had successfully posted there. |
| [11:09:42] | <skalakm[m]> | I see it here now. |
| [11:09:50] | <skalakm[m]> | I'll try what you said. |
| [11:09:59] | <mstenta[m]> | Oh no worries - yes I replied to both your previous questions. We actually have this chat bridged to IRC and it is being logged on irc.farmos.org - or you can scroll up in the Matrix chat |
| [11:10:00] | <mstenta[m]> | Cool! |
| [11:10:09] | <mstenta[m]> | Yea, I think Drush will be your friend :-) |
| [11:10:21] | <mstenta[m]> | Are you running farmOS in Docker? |
| [11:11:22] | <mstenta[m]> | If so, I would recommend extending the farmOS base image with your own Dockerfile and installing Drush in it... you can basically just copy these lines from the `farmos/farmos:dev` image: https://github.com/farmOS/farmOS/blob/d28b681056be3ac71fc826355e313f63f3... |
| [11:11:31] | <skalakm[m]> | I've run it both in docker and a MAMP setup. My plan was to try to get the automation it to work locally with mamp before trying it on docker. Is that a good plan? |
| [11:11:48] | <mstenta[m]> | Then you will be able to run Drush directly in the container with `sudo docker exec -it farmos_www_1 drush ...` |
| [11:12:24] | <mstenta[m]> | Up to you - I always recommend Docker because then you don't have to worry about dependencies/incompatabilities |
| [11:13:02] | <mstenta[m]> | We only "officially" support the Docker setup... otherwise you may find yourself digging through Drupal search results to resolve problems specific to your platform (but not specific to farmOS) |
| [11:13:21] | <mstenta[m]> | I can/do help with those when I'm able... but no guarantees ;-) |
| [11:20:15] | <skalakm[m]> | Thanks a lot. I'll just go straight to Docker. If I use the Docker dev compose file, drush should come with it right? |
| [11:21:33] | <mstenta[m]> | Yes that's correct |
| [11:21:44] | <mstenta[m]> | But I wouldn't advise using that image in production because it includes XDebug |
| [11:24:05] | <skalakm[m]> | Makes sense. Thanks for all the help. I'll give it a go this afternoon. |
| [11:25:03] | <mstenta[m]> | Good luck! |
| [11:25:17] | <mstenta[m]> | Also if you haven't seen already, check out the forum: https://farmOS.discourse.group |
| [11:25:36] | <mstenta[m]> | Are you working with Allen and Matt at Dickinson? |
| [11:26:10] | <mstenta[m]> | Migrating from FarmData to farmOS? |
| [11:26:39] | <mstenta[m]> | I suggested to Allen that we start a post about FarmData on the farmOS forum so that others who are/were using FarmData can follow along |
| [11:28:03] | <skalakm[m]> | Yeah I'm with that group. I'm not sure there's a whole lot to follow along at this point. |
| [11:28:58] | <mstenta[m]> | Cool - well if that changes feel free to make a post |
| [11:29:03] | <mstenta[m]> | I spent some time with Allen in https://github.com/farmOS/farmOS/issues/199 |
| [11:29:42] | <skalakm[m]> | That's not fair now that I wrote it, but we've had some struggles. I'll put one up once I talk to Allen again. |
| [11:30:49] | <skalakm[m]> | Since you've been talking with him... all the import stuff he's been doing can be with drush? |
| [11:32:45] | <mstenta[m]> | Good question: I've never used Drush for CSV imports - it depends on whether or not the Feeds module has Drush integration |
| [11:32:53] | <mstenta[m]> | https://www.drupal.org/project/feeds/ |
| [11:33:22] | <mstenta[m]> | Looks like it does! https://git.drupalcode.org/project/feeds/-/blob/7.x-2.x/feeds.drush.inc |
| [11:34:01] | <mstenta[m]> | Once you get Drush installed, just run `drush help` to list all the available commands - you should see some `feeds-*` commands there |
| [11:34:47] | <mstenta[m]> | I've never done it myself, though, so I probably can't help much beyond that |
| [11:35:19] | <skalakm[m]> | As long I'm working in the right place you've help plenty already. Thanks again. |
| [17:34:04] | * JustTB has quit (Quit: Leaving.) |