Upload local aimeos project changes to shared hosting - subdomain

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
User avatar
AhmadHelali
Posts: 7
Joined: 22 Feb 2023, 15:25

Upload local aimeos project changes to shared hosting - subdomain

Post by AhmadHelali » 05 Mar 2023, 18:52

Can I copy the local aimeos project to a shared hosting - subdomain?
I tried pushing the complete project to GitLab and then cloned the repo from the shared hosting (changed .env configurations)
and uploaded the local database
but the project doesn`t run
Is there a better way to upload local changes to online shared hosting?

Aimeos Full dist 2022
PHP version 8.2
Local environment Win
Hosting environment Linux

rowild

Re: Upload local aimeos project changes to shared hosting - subdomain

Post by rowild » 07 Mar 2023, 11:03

This is what I do on shared hosting:

1. I install the "skeleton software packages" (Laravel or TYPO3) on the shared hosting server directly, preferably via composer, including all necessary extension that my project needs.

2. The DB setup and configuration is done via an interface that the shared hosting provider offers (I hope your provider offeers sth similar, too).

3. Those elements that are individual to my project (let's say a "my-theme" extension) are managed via github (gitlab in your case). That allows me that I can install my extensions via composer on the locahost-server. To do so, I have to add a "repositories" definition to my composer.json file that extends the source to github/gitlab. Here is an example:

Code: Select all

{
   [...]
  "repositories": {
    "0": {
      "type": "composer",
      "url": "https://composer.typo3.org/"
    },
    "1": {
      "type": "path",
      "url": "./packages/theme",
      "options": {
        "symlink": true
      }
    }
  },
  "minimum-stability": "dev",
  "prefer-stable": true,
  [...]
}
("minimum-stability" and "prefer-stable" might be necessary, as well. The "path" option is only for local development.)

Transferring the database would be a separate step. Maybe your server allows to copy from one DB to another (in my case it is all-inkl, and there it is possible). Otherwise ex- and importing sql-files would be the way to go. Of course it is rather essential to first get to a state, where the remote DB has the same structure as the local DB.

User avatar
aimeos
Administrator
Posts: 7881
Joined: 01 Jan 1970, 00:00

Re: Upload local aimeos project changes to shared hosting - subdomain

Post by aimeos » 08 Mar 2023, 07:47

AhmadHelali wrote: 05 Mar 2023, 18:52 but the project doesn`t run
This is not helpful as problem description.
AhmadHelali wrote: 05 Mar 2023, 18:52 Aimeos Full dist 2022
PHP version 8.2
Local environment Win
Hosting environment Linux
Guess, the problem is that your local environment is different from the hosting environment (Windows vs. Linux).
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply