![]() Try working locally with everything first, then move it to your other server. It sounds like if you can connect to your production db via a 3rd party tool, but not your application there might be some permission trouble (just a guess). ![]() ![]() But, if they are simple things (added a new field) I usually just do that manually on my production server. Depending on how big of changes you are making post-launch, I am sure there are good/better/best ways to migrate the updates to your production db vs. My luck, I'll do something silly and delete something on accident. Generally, I like to have a local database which is separate from my production db. '/',īy having the multi-environment settings like the above, you can commit your code and it will run regardless of environment. Next up, create a file named by using your text editor of choice, in this case, I’m using vi. We now need to enter that directory by typing: cd /ssl. Installing XAMPP seems easy enough: just download the correct installer from their website and run it. This will create a directory called ssl in your root folder. '.com' => array( // production configuration Open up a terminal and type the following: mkdir /ssl/. I can't remember the exact verbiage.įrom there I will edit two files: /craft/config/db.php If successful, you should see a screen saying that your site is unavailable. When setting up your site, point your doc_root to the public/ folder.įor example, if you are using a Mac, a default doc_root might look like this: ĭocumentRoot "/Applications/MAMP/htdocs/sitename/public" With MAMP, youll do just as well (or better) to install Craft from a zip file then. Some MAMP Pro users have reported positive results after renaming this file. MAMP will not compromise any existing Apache installation already running on your system. MAMP comes free of charge, and is easily installed. That would look something like this: craft/ Many developers prefer MAMP for their local development environment. If this doesn’t resolve your issue, there’s a chance that your file may be corrupted. MAMP installs a local server environment in a matter of seconds on your Windows or macOS computer. Generally you want your craft folder above/out of your web root. When you get Craft out of the box (for lack of better words) as you said there is a craft folder and a public folder. Here is how I have set things up in the past using a similar workflow.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |