Heroku: undefined method during migration (Rails 7 Api) - api

I created an API with Rails 7 and I have a problem when I try to migrate my data to Heroku with the command : heroku run rails db:migrate.
I have this error in my console :
NoMethodError
Everything seems to work fine locally, but I can't send my data to Heroku.
I don't quite understand why.. Here is the content of my gemfile:
Gemfile.rb
This is my first time asking a question on this platform, and I'm brand new to web development. I apologize in advance if you feel that you lack information to try to help me to solve my problem. Thanks in advance, have a good evening.
Problem solved. I had forgotten to communicate to Heroku my secret_key_base which was in my credentials.yml file ^^

Related

WebApplication crashes on some clients after update

I amb developing a web application with the frontent using typescript and vue, and the backend using spring. All deployed into a machine with tomcat9.
For some reason, everytime I update the application my boss calls me days later stating that the application stoped working. I then go check, but works fine for me, ask me boss to clear cache site and then it works for him to.
I dunno why, but this always happends to my boss and not me.
At first I thought this was happening cause I wasn't updating the version on the package.json file. But this doesn't solved the problem.
Any hint on what I can do to avoid this behaviour? Any workarounds would also be appreciated. As a developer I don't mind clearing the cache but our clients....

Error in VueStoreFront integration with Shopify

I'm trying to install VueStoreFront with Shopify. I have followed the installtion steps in https://docs.vuestorefront.io/v2/general/installation.html for Store front and
https://github.com/vuestorefront/shopify for Shopify instance and provided my shopify url and key. When running the application in the browser, I'm getting the below error.
and in the terminal the below error is thrown.
any idea on what I'm missing.
It was an application error and it is resolved by now. Sorry for troubles! We made sure it won't happen again!
Please generate your project from the CLI again. Also, in case of any further questions you'll get the fastest answers by asking them on our discord
Cheers!

Error deploying vue app using any type of deployment

I have only deployed a couple small apps before and I am still newer to deploying apps in general.
I created this app by following a course and have recently finished the project. The course did not provide instructions on how to deploy the app. I have used Firebase hosting a couple times and am also somewhat familiar with Heroku. Regardless, it all seems pretty straight forward after following documentation.
I first tried Firebase hosting since that is what I am most familiar with. Spent some time with that with no luck, then tried heroku, then netlify, then NOW. Every single one of them had issues without any real information on them.
NOW says deployement failed with no logs.
Firebase hosting doesn't seem to be logging any errors, it builds a blank page.
Netlify says page not found after deployment and Heroku was something similar.
I am 100% open to getting this simple app deployed using any approach at all (preferably the easiest one).
Since I am following documentation and there doesn't seem to be any errors being logged, I'm completely stumped and am not sure what to do.
I realize I might not be providing the most helpful information to solve this issue, although I do have my full repo here:
https://github.com/SIeep/austin-pizza
Would anyone be kind enough to look over my repo and see what the issue might be? Or even point me in the right direction?
Please let me know if I need to provide any additional information.
Thanks!
missing entry file or file path problem ?
Try to find out which stage the problem is at first.
Compare this and last successful Firebase Configuration(dependency path),
Compare this and the last build dist file (not detail code,just File structure)
compare webpack.config.js
(app can run well locally,so i think it wouldn't because of the problem with the app's own code)

Best practices for deploying Rails 3.2.x app to Heroku?

Are there changes to the rails config files that are commonly made to boost performance before deploying most apps to production on Heroku? Curious after reading Nerian's answer to this question (summary: Heroku deployment issue solved by making "config.assets.compile = true" in config/environments/production).
Hope this isn't too general-- I'm a stack overflow newb as well. Thanks!

Force SSL using Thin

I recently installed Thin on our server.
Now my customer asked me to implemet SSL on my whole application. So i've searched the web for a guide to implement SSL.
I've found this, which seems to be very easy.
I got my certificate and the key and i started up the server as shown. The Server starts up without any problems, but when somebody tries to connect i get this error message:
terminate called after throwing an instance of 'std::runtime_error'
what(): Encryption not available on this event-machine
Aborted
The Server stops and the browser shows a "Connection reset" Page.
I looked around and some people say that this has something to do with the libssl not being installed, so i looked inside the /usr - Folder and there she is.
Then i searched for other Solutions, but most of them seem to require Apache or Nginx, which is not an Option, sadly.
Any Ideas how to get Thin to work with SSL?
More Info to the System:
VHost Debian 6 x64
Rails 3.2.8
Ruby 1.8.7
Thin 1.4.1
Okay i fixed this issue by just doing an update.
I begged our admin to install RVM and finally he allowed me to do so, but the problem:
I've noticed some things by reading the patch notes of Ruby since 1.8.7.
It seemed that Ruby had some issues with SSL that were fixed with Ruby 1.9.x.
Now i am running Ruby 1.9.3 with Rails 3.2.8 and everything works fine!