AWS doesn't allow you to run commands. In order to get around this, add your migrations to deployment in this video.
- [Instructor] So now that we've edited our settings, … so that we can connect to our new database, … we have to be able to apply some migrations … to that database. … Now this is where Beanstock gets a little bit tricky … because we don't have the power … to just directly log in and run a command, … like Python, Migrate, or Python Create Superuser. … But we can tell Amazon to do those things for us, … on our behalf. … So lets go head and move back over, … into our guide here that we have for AWS. … Move all the way down, almost to the bottom here, … where it's going to talk about creating … a database migration file. … Go ahead and just copy what we have here … inside of this text break. … This is essentially saying these are … some changes that we want to make. … Let's go ahead and move back into our terminal. … And we're going to type out, nano .ebextensions … that folder that we created, slash, … and we're making a new file, db-migrate.config … Okay? So this is our file … that we're making, we're saying, …
- Transferring code to a server
- Managing media files
- Creating a custom URL
- Configuring file settings
- Securing a server
- Database setup
- PostgreSQL setup
- Gunicorn testing
- NGINX setup
- Storage setup
Skill Level Intermediate
What you should know1m 44s
1. Digital Ocean
Next steps1m 7s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.