This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
I have made a project in my localhost/octobercms/ folder. Now, It's time to put this project to the internet. Is here any way how to do it? I can't find anything in documentation about it. So I manually coppied all files to the hosting, uncomment "rewrite base" in htaccess, but it doesnt work. It return 500 server error. Can somebody help?
I think the best way (but there are a number of ways) is to install october fresh in the new place. Make sure you are using the same project code with the correct list of plugins that you require. Then copy your theme folder and any other plugins (if they are not on the market place and listed on your project code).
Thanks @axomat, but what about the database data ? Export them and import them ? Thanks for your advice.
I use git to deploy my entire project to the server (including October core - though maybe we should include it as a submodule but I found it quite complicated to do). Here's a good lesson on how to do so - https://www.digitalocean.com/community/tutorials/how-to-use-git-hooks-to-automate-development-and-deployment-tasks
Once, I get the files moved to the server I do these in sequence (in the project root):
- Run 'composer install' (to get the composer dependencies)
- Manually create a .env file with DB credentials and other things as needed
- Run 'php artisan october:up' - this creates the database tables
- Run 'sudo chmod -R 755 ./*' to setup required file permissions for October
And that's about it.. Hasn't failed me ever so far!
First, it is important to create an account on OctoberCMS website, create a project and then relate this project to your origin host project(The place you first created your website). Note that when you are adding plugins to your project, it's import to do so from the OctoberCMS website, not directly from your backend. This is made in order to save your plugins to all the backends related to that project. Second step is installing a fresh octoberCMS project in your destiny host and choose the option "select from an existing project"(or something like that) and paste the project hash from october website related to this project. This will import all your plugins automagically. Last step is to import the folder "themes", with the theme you were working on and that contains most of the code you wrote. Also, import the folder "storage" which contains most of your media files and some more important content.
Hope that helps. It's been working for me.
1-6 of 6