First, You need to set up some config in env.rb
mv env.rb.example
Write your dingtalk callback url and phone_number in env.rb
Then, you can run the sinatra app:
- Run in development with
ruby app.rb
- Run in production with
bundle exec rakeup config.ru -p 4567 -s thin -o 0.0.0.0
- Run in docker with
docker build -t aws-sns-to-dingtalk .
docker run -p 4567:4567 -d --name=aws-sns-to-dingtalk aws-sns-to-dingtalk:latest