Skip to content
This repository has been archived by the owner on Jul 16, 2022. It is now read-only.

Add SubscribeToSendgrid Ruby function #300

Closed
wants to merge 1 commit into from
Closed

Add SubscribeToSendgrid Ruby function #300

wants to merge 1 commit into from

Conversation

rafaeelaudibert
Copy link

A sample Ruby Cloud Function for adding the given email address to a Sendgrid Newsletter.

@rafaeelaudibert rafaeelaudibert changed the title Add SubscribeToSendgrid Ruby function Oct 30, 2021
Copy link
Member

@christyjacob4 christyjacob4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add screenshots of the logs from a successful execution using the Appwrite console and address the remaining comments.

Go to Settings tab of your Cloud Function. Add the following environment variables.

- **APPWRITE_ENDPOINT** - Your Appwrite Endpoint
- **APPWRITE_PROJECT_ID** - Appwrite project's ID
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can remove this env var. It's passed to the function by default


```
.
├── Gemfile
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're missing the .appwrite folder in this structure.

- Create a tarfile

```bash
$ tar -zcvf ../subscribe-to-sendgrid.tar.gz .
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$ cd ..
$ tar -zcvf code.tar.gz subscribe-to-sendgrid
@christyjacob4
Copy link
Member

@rafaeelaudibert closing this PR for now. Feel free to reopen it / create a new one when you're ready to start working on it once again

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
2 participants