![]() ![]() One thing to note is that I currently have the textbelt folder in /var/www/, but the web document root is in /var/www/html/. d "message=I sent this message for free with "īut this did not work (all I got was the HTML of my 404 not found page). For example, I tried using cURL to send a message using my server, just as I would to : $ curl \ However, I believe that further configuration is required to actually send a text message. Restarted everything, the logs look good now: ^[[0 42m hotnode ^[[m ^[[0 32mnode process restarted^[[m Update: Alright, so I figured out that I had to also install the redis server separately. What is the proper way to install and start up the TextBelt API to get it running properly. Overall, I am not sure if I am proceeding in the right direction. However, after looking at my node_modules folder, I see that there is indeed a redis-url folder inside, which (I'm assuming) means that the dependency was properly installed? Do I have to do a server-wide install or something? This suggests that redis was not installed properly. However, I get the following error: -bash: redis-server: command not found ^[[0 31mError: Redis connection to localhost:6379 failed - connect ECONNREFUSEDĪt RedisClient.on_error (/var/(/var/(node.js:419:13)Īfter Googling "Redis connection to.failed", I found this answer which suggested that the solution was to start the Redis server by typing redis-server. ^[[0 31m throw er // Unhandled 'error' event Unfortunately there isnt a better way right now (other than paying Twilio) because you cant reliably map phone numbers to carriers without paying. Now the implementation is very simple and open source. ^[[0 31mconnect.limit() will be removed in connect 3.0 Before I wrote Textbelt there was no way to send free texts from the command line. ^[[0 31mconnect.multipart() will be removed in connect 3.0 ![]() This is my complete output: ^[[0 42m hotnode ^[[m ^[[0 32mnode process restarted^[[m Naturally, I checked the log, and saw this: ^[[0 31mError: Cannot find module '/var/(module.js:338:15)Īt Function.Module._load (module.js:280:25)Īt (module.js:497:10)įor some reason start.sh references the app.js path incorrectly. TextBelt uses carrier-specific gateways to forward free SMSs without. I then got the following message: nohup: appending output to ‘/home/ec2-user/nohup.out’ It provides outgoing SMS services for developers. I saw that there's a bash script start.sh in the "scripts" folder, so i cd'ed into it and ran sh start.sh. I used git to clone all the files to a directory called /var/file and created the symlink, as per the directions provided in this answer. However, I'm unsure about how to properly go about this. ℹ️About GitHub Wiki SEE, a search engine enabler for GitHub WikisĪs GitHub blocks most GitHub Wikis from search engines.I want to install TextBelt, an open source cURL SMS API, to my own Amazon EC2 web server and use it to send text messages. That way any calls to the public Textbelt service just routes to your self hosted option. Then set users of your self hosted Textbelt service to use the proxy for web/internet access. Use and configure a proxy server to map/route requests to (or the specific API URLs at least) to your self hosted service's hostname IP address. ![]() I suppose I could update the clients of this project to be configurable for URL with default being the public serivce that you can override for self hosting, but that's too much work for me LOL (send a pull request perhaps -) )Įdit the source code to point to your self hosted Textbelt's hostname or IP address, then recompile/repackage the client (browser extension, app, etc.), you won't have to publish/distribute it in app store or browser extension gallery however, since it's use is specific to you, just install/deploy internally.Įdit the host file of machines that will use the Textbelt service to map/route to your self hosted service's IP address. If you wish to use with self hosted option, you have 3 options below. The listed clients, especially the ones with source code here on Github can be used with the self hosted version of Textbelt rather than the default public service. ![]()
0 Comments
Leave a Reply. |