Deploying Google AI Studio

Google AI Studio is really useful and powerful.

While I understand that it is a prototyping tool am I wrong to believe that it can be deployed to Google Cloud Run? I have tried to write multiple different applications in Google AI Cloud and can’t get even the simplest app to deploy.

Is there a guide on how to do this? I imagine that people on this forum have actually deployed their apps?

Thanks!

2 Likes

I actually deployed apps to my own web server. All you have to do is download the app as a ZIP file from AI Studio and extract it in a folder on your server. Then you need to run a few commands:

npm install

This will install npm in the folder where you extracted the zip files.

npm run build

This will generate a dist folder with the app ready to run.

chown -R www-data:www-data .

This changes the owner on all files to www-data. (Or whatever user has access.)

systemctl restart nginx

Just restart nginx to make the new distribution active.

In the nginx configuration file, you need to set the root for the website to {extracted-folder}/dist so nginx can find the correct directory. Keep in mind that additional files for your project (like images and text files) need to be in a /public folder of your IA Studio project, else these won’t be sent to the distribution folder.

As for a guide to help with this. Google Gemini can be quite useful to help you with this, including analyzing any errors you get. I generally have one tab open for AI Studio and a second for Gemini when working through problems.

Thank you very much Katje. Really appreciate it! Can I ask you what your own web server is - what technology do you use?

1 Like

have you encounter blank homepage without build error

I use a simple MSI Cuby 5 desktop computer with a 4 TB SSD and 64 GB RAM running Ubuntu 24.04 and this is just for me testing my many projects. One of them is on the .org domain for my name (katje org) that is basically made with AI Studio and C# for the backend.

I have successfully deployed my application - Free Thumbnail Maker’ on shared hosting with domain thumbnaileditor

Read the guide here: ipick.vn/en/bai-viet/how-to-deploy-google-ai-studio-app-to-hosting-with-your-own-domain-name

1 Like

Just wanted to say thank you for this. I followed your guide step-by-step and it worked perfectly.

Thank you but your screenshots are not in english> it will be cool if you can update the tutorials in english especially the steps taken at the webhosting coy you recommended.