简体   繁体   中英

Can you convert a Rails app to Sinatra on Heroku

Does anyone know if there is any issues with converting a Rails app to Sinatra with Heroku? I already have a Heroku app running and it is currently a simple Rails app that is basically a few views and a controller with no database interaction. Are there any potential issues if I just change everything from Rails to Sinatra?

There shouldn't be any issues, other than the manual work required by you. You'll want to make sure and update your Procfile to run your Sinatra app correctly. See here for Deploying Rack-based Apps on Heroku's Devcenter. I also recommend using Foreman for local development, it should helping to find any possible issues running on Heroku easier: https://devcenter.heroku.com/articles/procfile#developing-locally-with-foreman

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM