So I finally managed to get Yii2 loaded up and launched on EB in AWS. The framework is able to talk to the database as expected. The issue is, there’s nothing in the database (duh, I have put anything there yet).
How do I access the console/migration tool remotely? I have migrations written and ready to go, just need to access the console to activate them.
This is where my knowledge really falls short and I don’t see any guides/tutorials on this. I would really appreciate some guidance on this one, as I’m completely lost here.
Thought I replied to this, but I guess not. I was able to figure it out.
You have to get EB CLI working first. Once that’s done, you setup your SSH access keys. Go through the eb configuration settings and get everything set up (amazon has tutorials on this, it’s pretty easy).
Once that’s done, SSH into your instance and navigate to /var/app/current/projectname
Once you’re in, simply type php yii migrate.
If you have triggers, you’ll need to follow this walkthrough and redo your migrations (they will fail otherwise).