first time asking on stackoverflow.
I completed chapter 9 of Rails Tutorial.
All the tests go through, the sample_app works fine on the server (I'm using cloud 9 btw). Everything is working...
until I try it after deploying it to Heroku.
So I deployed to Heroku following Hartl's instructions.
I did the $ heroku run rake db:migrate too.
Now, when I try to log in at the Heroku deployed app,
I get the error message :
"invalid email/password combination".
I'm 100% sure I have the right email/password, and the same email/password combination works fine on the rails server.
Can anyone please tell me what's wrong? I'm not sure where to even start look for bugs.. (if there are bugs)
You need to run $ heroku run rake db:seed so that you populate the database on your Heroku app with user account information.
Related
I recently finished developing a Laravel 9 app, using wsl2 and sail, just like I was told in the Laravel documentation. Since it’s my first time deploying to live ever, I ran into some differences with local and production files such as .env, docker-compose.yml and Dockerfile.
I tried using guides and tutorials but I can’t seem to make sense as to how to make it work. I have a droplet with a non-root user with sudo privileges, since I used these two kind guides:
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-20-04
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-compose-on-ubuntu-20-04
after finishing with the installation, I tried to clone my app and run it like I do locally, and nothing happened. I realize I can’t use sail on the server, but what is the correct way to make it work?
All three local files (.env, docker-compose.yml and Dockerfile) were never edited.
use this repository docker-laravel
i have Php, Composer, and mariadb on it.
I'm trying to build multi-container app that includes PostgreSQL and pgadmin4 with single docker-compose file. But I'm getting stuck here.
This is my docker-compose file
I'm sorry. I later realized that both services were running properly. Its only that I'm not getting any confirmation on the CLI but I'm able to access from browser.
I am working through the rails tutorial online and I've hit a snag.
I worked through the Learn Enough Rails to Be Dangerous course on my native machine (macOS Mojave) and have rails 5.1.6 installed with rbenv. I had no issues working through the Rails Tutorial until lesson 2.2. I made it all the way through the $ rails db:migrate then $ rails server commands without issue but when attempting to load my web app with "the slash" + /users, I get this error:
"The page you are looking for doesn't exist. You may have mistyped the address or the page may have moved. If you are the application owner check the logs for more information."
The normal slash page still brings up "hello, world!" but none of the pages will load with the new files (/users, /users/1, /users/new, etc.).
I've tried deleting the application and the related repos (BitBucket, Heroku) and starting new from the beginning of lesson 2 and I still have the same problem.
Any insight is greatly appreciated.
So, I googled the error message I found in $ heroku logs
and found this:
Heroku Ruby On Rails Server Logs says 'Users' does not Exist
which led me to the command: $ heroku run rake db:migrate
which solved the problem--the /users page et al are now accessable.
I have an app I'm writing using Meteor, Angular2 (using the angular-meteor package), Typescript, and MongoDB. I'm trying to put it up on Heroku and running into difficulties. I'm using this meteor buildpack. I'm not sure whether the problems are with Meteor, Heroku, or Angular2, though I suspect it's something Heroku isn't configuring correctly for Angular2. The site is at http://alfred-zahner.herokuapp.com/ and the error I'm getting is:
EXCEPTION: No provider for t! (e -> t)
I've checked the Heroku logs and there is no sign of trouble there. Part of my problem is that I can't see what t and e are, as someone (Heroku?) is uglifying the JavaScript. I'm not really sure how to proceed in debugging this.
One way to solve this problem would be to figure out and fix the error, but I'd be happy if there's a better build pack, or even a better (must be free!) hosting environment that I could be using.
Edit
It's not Heroku's problem. The same thing happens when deploying to Meteor's built in deployment testing (meteor deploy site.meteor.com). If I deploy using meteor deploy --debug site.meteor.com, however, it works, so Angular2 has some problem with the extra processing that happens when Meteor prepares an app for production.
On the angular2-meteor Github I found out that this is an issue with Angular 2 in particular, when using UglifyJS. For now, it seems the only solution is to use meteor deploy --debug. I'm planning to just use that on meteor's built in hosting until Angular 2 plays nicely.
Hi my friend and I are facing this problem where we are unable to create a Heroku application in eclipse. We keep running into the error and the error is java.lang.reflect.InvocationTargetException. We followed Heroku eclipse but it still gives the error. My friend even downloaded the newest eclipse no no avail.
You must have reached the app limit in heroku. Heroku provides 5 free apps. Delete one and try again.
Go to heroku.com and login. You will see all the apps you created.
Then go to the settings and delete one app and try creating template again in eclipse.
No help I know, but I am also seeing this. I have used heroku from the command line in the past, but following the instructions on the heroku site don't appear to be working.