Coat the bottom of a large pot with 1 tablespoon of the oil and place it over medium heat.
Once the oil is hot, add the onion and bell pepper. Sweat the vegetables for about 5 minutes, until they start to soften, stirring frequenly.
Stir in the curry paste and sauté it for about 1 minute, stirring constantly to prevent it from burning.
Stir in the coconut milk, pineapple, and green beans. Raise the heat to high and bring the liquid to a boil, then lower the heat until it's just at a low simmer. Cover the pot and let the curry simmer for about 15 minutes, until the beans are as tender as you like them. Uncover the pot and give the curry a stir occasionally as it cooks.
While the curry simmers, coat the bottom of a medium skillet with the remaining tablespoon of oil and place it over medium heat.
Once the oil is hot, add the tofu cubes in an even layer. Cook the tofu for about 10 minutes, flipping the pieces once or twice so that they brown on multiple sides. Transfer the tofu to a plate when it's done cooking.
Uncover the curry and let it simmer for about 2 minutes longer, just to thicken the sauce a bit. Stir in the tofu.
Remove the pot from heat. Stir in the lime juice and season the curry with salt to taste. Stir in the basil and cilantro.
Serve the curry over rice.