not-urgent response sought:
I’ve been using my glitch project, birdybook (a tool to save faculty some brain when they need to get resources from publishers), to learn programming.
This week I’m learning git and using atom. I downloaded the project and have been trying to make sure I know what I’m doing and have at least some initial effort at version control. I’m not concerned about getting stuff out of sync on Glitch right now because it’s obviously a tool built for other purposes.
I’ve had issues here and there with the transfer to my own machine, and I just did a few searches in the forum and couldn’t find the answer to these questions. Some may be custom issues with my own environment but I thought I’d check for any known issues
First, all my api credentials failed. Its like the .env file wasn’t there. Since nothing is extremely serious/private I just moved them into the clientside so I could work on troubleshooting some other stuff, but I guess I don’t know where the process.env.VARIABLES are if they aren’t in the process.env object.
I had a lot of trouble with pug/jade; as I understand it, express loads all the pug I need and so on Glitch pug is not listed on my package.json dependencies, but I ended up succeeding by adding jade to package.json dependencies, though because I was troubleshooting like a noob I’m not 100% sure that’s what fixed it. My thought is, I wonder if there are things going on in my env when I grab express that are different from when Glitch grabs it. and my goal in asking is that in the scenario where there is a known reason that such an undocumented dependency might work in Glitch and not on my machine.
I’m going to keep trying to get it to work – I’ve got pug rendering properly and the Apis mostly working, at least for the “/” route, but some later API calls are currently failing and I’m guessing it’s that env file; I’ll keep looking for answers but my main reason for posting here is that I’d really like to increase my contextual understanding of the space between 0 and Glitch; i.e., the stuff glitch is doing behind the scenes, so I can take projects to the next level.
John Gilmore, Vancouver Washington