![]() ![]() ![]() You will notice a "DATABASE_URL" field with a URL field next to it containing the Heroku URL for your database. In your index.php file in your working directory, in the PHP section of your application where you are setting your local database url, add the following code (note, this is where you'll need that database URL from the Settings tab of your Heroku app, not the exact URL listed below): Take note of this URL as we'll be using it later. $raw_url = 'postgres://.garbled.letters/.DATABASE_URL.on.Heroku' #PSEQUEL LIST DATABASE CODE# Save your file and reload your page in your browser, you'll now see an array being displayed near the top of your page displaying some easy-to-read information about your remote database URL. Click "Add Connection" in the bottom left of the screen. Name this something appropriate appended by "for Heroku" so you can remember this is your remote database and not your local one. We'll now need to fill in the URL information we dumped to our browser. Simply copy/paste from and into the appropriate fields in PSequel. Note that you will need to remove the "/" from the "Database:" portion. Now put a check in the Use SSL tickbox, you will not need to fill any of this information out.Ĭlick Connect in the bottom right of the screen and you're now connected to your remote database hosted on Heroku! Now open a new browser tab and download and install Composer globally from here: Composer Make sure to follow directions to do a global install here, as some of the commands we issue will not work correctly if not globally installed. gitignore in your text editor of choice and add the following lines: Now, in terminal within your project working directory, type the following:Ī few more commands to enter in terminal while we are here: #PSEQUEL LIST DATABASE INSTALL# Env.sample in your text editor of choice and add the following this line into your. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |