How does one upload a trongate app to a server so it runs
Comments for “How does one upload a trongate app to a server so it runs”
|
|
---|---|
Posted by Fin Motolinia on Friday 17th May 2024 at 14:05 GMT This comment was edited by Fin Motolinia on Friday 17th May 2024 at 14:28 GMT |
User Level: Level One Member Date Joined: 18/01/2024 |
Posted by DaFa on Saturday 18th May 2024 at 02:32 GMT
Hi Fin, not knowing your hosts services available to you and their settings. My gut-feel is that Trongate is not being served correctly going by your php 500 errors. Either permissions or .htaccess. Can you confirm that you have Apache 2.4 installed and mod_rewrite is enabled? I'd be looking at that first with a clean install of Trongate. Then ensure php has the correct permissions. Then move to your database settings. Once that's done try changing ENV to 'live' and do a few db writes with Trongate Pages and test the Trongate admin panel and a few api-explorer calls to ensure all is working as expected in a live state. Then if all is well, upload your app. If you are still failing at the first step, you should approach your provider for help. BTW, Trongate does work with Nginx and Caddy, you just need to emulate/set rules to mimic .htaccess files.
This comment was edited by DaFa on Sunday 19th May 2024 at 06:35 GMT |
User Level: Founding Member Date Joined: 30/11/2018 |
Posted by Fin Motolinia on Monday 24th June 2024 at 23:29 GMT
So it was a bit of a brainfart on my end. I have been working on learning about all this and building different apps I got lost along the way. The trongate desktop app creates a htaccess and an index file with the approrpiate config and startup. I must have deleted them in dev. Another small caviat is that the app name is only applicable as a dev. Once uploaded the web url replaces localhost/app_name. This also means that after I unzipped my uploaded app, I needed to move the contents directly into my public directory, Site is live now and aside from small discrepancies in style sheet/images loading- running well so far, although I am still debugging. login forms from member module for example style sheet on mobile isn't working. A BIG BIG PLUS: PRELIMINARY GOOGLE PAGE SPEED INSIGHT SCORES IN THE 90's.
I've tried getting here with drag and drop website builders in the past like "elementor" and its impossible. Page speed is one of the most important factors of SEO page indexing and it seems Trongate has stood up to the hype. This framework is going to make my site a STAR once I finish this project. This comment was edited by Fin Motolinia on Saturday 29th June 2024 at 14:03 GMT |
User Level: Level One Member Date Joined: 18/01/2024 |
Posted by DaFa on Wednesday 26th June 2024 at 06:16 GMT
That is great to hear Fin, I am sure DC will be delighted with the great Google score and speed you are experiencing. Be sure to share a link so we can all check out your site 🤓👍
** Edit - If you don't mind Fin, can you please edit the last two sentences to read like so: "Page speed is one of the most important factors of SEO page indexing and it seems Trongate has stood up to the hype. This framework is going to make my site a STAR once I finish this project." The Trongate community would like to transition from the 'DC roadshow' mindset, to a model based on community-driven collaboration. This comment was edited by DaFa on Thursday 27th June 2024 at 10:44 GMT |
User Level: Founding Member Date Joined: 30/11/2018 |
This has been a massive headache. Bottom line is 500 code.
I did realize xampp needed updating and now is at 8.2.12 and my hostgator centOS7 is at 8.2.18, however dont understand how this will affect compatibility but it kept coming up in my search through helpbar. It looks xampp server api is apache 2.0, and CentOS is running FPM/fastCGI.
After some other confusion with A records and ns's between registrar and host, everything else I put on my server runs, info.php, index.html.
mod_rewrite was something I finally tracked down as installed, commands involving rewrite were not working for me, so I started looking into admin/ sudo user commands. I bought a new vps server running CentOS 7 for the root access, I wanted to make sure Trongate worked smoothly as root and password are required for database actions that Trongate revolves around and wasnt sure I could get Trongate working on old shared server, especially if the app gains good business traction.
I have a Root and a cpanel user set up with different passwords, apparently correctly. So I Checked server logs and pointed to AH01630, I tried learning about and using sudo commands next for apt-get update but command not found, so that route didnt work. I've been going in circles this week trying to go live. I even learned how to get a fresh reposit off Git "tg_app", in config I changed BASE_URL from localhost to 'sitename.com/'. Permissions all seem to be fine as far as file codes, 0755 or 0644. I am going to try installing wordpress at this point and see if it helps configure my server in a way I can insert my trongate app to run as my php "website".
In the past I remember getting a trongate app live but it WAS on a site which had wordpress installed prior, so things like htaccess, cgi-bin where established. starting off with a bare vps server I'm guessing I was missing alot of mods/settings/apps/directories but I am not on that level of webdev to understand, at this point I have followed a couple setup tutorials for my server.
I hope someone can come up with a good answer on getting a trongate app live on a new server. It feels I am getting everything wrong that can go wrong.
hoping if I can get tg_app working I can just drop the project Im working on in to it more or less.