Anthony Lee

Joined

1,560 Experience
13 Lessons Completed
0 Questions Solved

Activity

Can't you just do this with automatic deploys in Heroku?

Posted in Grandfathering

Thanks for replying guys. Daniel, those are great tips! Thanks. I got some good ideas from you both.

My situation was little bit different, since I was moving our users from freemium to a paid version. I decided to grandfathered in the free users and start charging for the new users.

It was little tricky since users had different authorization levesl to certain parts of the services.

I was wondering how other people were approaching the problem, and these helped!

Posted in Grandfathering

I am experimenting with pricing. Any good tips or procedures to try out grandfathering in old users and apply new pricing to new users?

Posted in Deploy Ubuntu 18.04 Bionic Beaver Discussion

I fixed it by:

  • Installing SSL (LetsEncrypt)
  • configuring the /etc/nginx/sites-enabled/yourapp file to listen to 443
  • configuring the firewall

This was a good resource:

https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04

I have tested this in:

Amazon Lightsail
Digital Ocean
Azure

and it seems to all work with just few minor changes in each.

Posted in Deploy Ubuntu 18.04 Bionic Beaver Discussion

Sure, after I change the /etc/nginx/sites-enabled/nameofmyapp

The IP doesn't work. (Prior to this the default Nginx worked)

The Capistrano successfully upload all the files to /home/deploy/nameofmyapp directory. I checked if paasenger is working, and the status seems okay. The database migration worked.

Any thoughts? I literally did this step by step.

Posted in Deploy Ubuntu 18.04 Bionic Beaver Discussion

This doesn't work with AWS Lightsail...

Posted in Auto saving forms as they type.

Yes Chris, I think this is a common feature now that it will be a great screencast! DO IT.

Posted in Auto saving forms as they type.

Any good tips on how to auto save the form while user is typing?

For example:
Post is a model. I press create new post to open up a form. While I am typing a post field—it auto saves the post prior to pressing the save button. As user continues to type new things, it continues to save. I have seen some javascript libraries—but was wondering if anyone has implemented this with their rails app.

Posted in How to calculate MRR in Stripe?

I need total sum of MRR amount in single digit. Anyone knows how this is possible in Stripe?

Posted in Comments With Polymorphic Associations Discussion

Do it!

@service = Service.where(provider: auth.provider, uid: auth.uid).first

FYI, that line gives an error if you cancel the omniauth login process.

Yes, this doesn't work in Safari.  Even this page https://gorails.com/users/sign_in does not in Safari.
I am not totally satisfied with Digital Ocean Spaces.  It is very slow at time.

Posted in Uploading Files to DigitalOcean Spaces Discussion

Can you CDN digital ocean spaces?
logo Created with Sketch.

Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

© 2020 GoRails, LLC. All rights reserved.