Upload local aimeos project changes to shared hosting - subdomain
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!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
- AhmadHelali
- Posts: 7
- Joined: 22 Feb 2023, 15:25
Upload local aimeos project changes to shared hosting - subdomain
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
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
Re: Upload local aimeos project changes to shared hosting - subdomain
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:
("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.
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,
[...]
}
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.
Re: Upload local aimeos project changes to shared hosting - subdomain
This is not helpful as problem description.
Guess, the problem is that your local environment is different from the hosting environment (Windows vs. Linux).AhmadHelali wrote: ↑05 Mar 2023, 18:52 Aimeos Full dist 2022
PHP version 8.2
Local environment Win
Hosting environment Linux
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star