Share your website
Let someone else see the website you've made. You can send a link they open in a browser, or a ZIP they can keep and edit.
These steps are the same in Community (free) and Phoenix Pro. They work for websites made from HTML, CSS, JavaScript, and images.
1. Save and check your website
- Open your project in Phoenix Code.
- Choose File > Save All.
- Open
index.htmland show Live Preview with the lightning bolt. - Check that the home page and its pictures appear.
If you're using the practice website, you should see Trail Notes and the Home, About, and Contact links.
2. Choose what to send
Choose Send a link for a quick preview, Send a ZIP for editable files, or Keep it online for a permanent website address.
- Send a link
- Send a ZIP
- Keep it online
Publish a temporary preview
This makes your website public for three days. Keep only files you want to share in this project.
- Select
index.htmlin the file list. - Find the publish button (three connected dots) in Phoenix Code's right-hand toolbar. Hover over it: the tooltip says Click to publish and share this site.
- Click it to open Publish and Share Website?.
- Check the destination shown in the dialog, then choose Publish.
- Wait for the published page to open in your browser.
- Copy the address from that browser window and send it to the person who should view your site.
They should be able to open your website without opening Phoenix Code. Send this new address, rather than the address of your editor or a local preview.
To show a later change, save it in Phoenix Code. While the publishing session is active, the editor syncs the changes. Reload the published page to check them. If you have restarted the editor, follow the publishing steps again.
Package your website files
A ZIP puts the whole website into one file. Send all the pages and pictures together so the website still works after extraction.
If you opened a folder from your computer:
- Open that project folder's location in your computer's file manager.
- Right-click the folder. On Windows, choose Compress to ZIP file. On macOS, choose Compress.
- Send the resulting
.zipfile.
For the practice website, compress the first-website folder. The archive should include index.html, the other pages, styles.css, and images.
If your project is stored inside the browser:
- In Phoenix Code, choose File > Download Project.
- Save the
.zipfile when your browser asks. - Send that file.
If Download Project isn't in the menu, your project is already in a local folder. Use the file-manager steps above.
Tell the recipient to extract the ZIP first. They can open index.html to view the website, or open the extracted folder in Phoenix Code to edit it.
Publish with GitHub Pages
Use this when the website needs to stay online beyond a temporary preview. You'll need a GitHub account. This method makes the website and its source files public.
- Create a new public repository on GitHub for your website.
- Upload your website's files into it. Put
index.htmlat the top level, next to your CSS file and image folder. Upload the extracted files, not the ZIP. - Open the repository's Settings.
- Select Pages.
- Under Build and deployment, choose Deploy from a branch.
- Choose the branch containing your files, usually
main, and the /(root) folder. - Click Save.
- Wait for deployment to finish, then open the website address shown in Pages settings.
You should see your home page at its new public address. Open About and Contact to check that those pages were uploaded too.
GitHub's publishing instructions show the current settings. You can also use Git in Phoenix Code to push later changes.
3. Check what the other person receives
For a link, open it on another device. For a ZIP, extract it into a new folder and open its index.html.
Check these three things:
- The home page appears.
- Every picture loads.
- The page links open the right pages and let you get back to Home.
Your website is ready to share.
Need help?
I already have Hostinger or another web host
Use your host's File Manager to upload the website files. On Hostinger web hosting, open the site's public_html folder and put index.html directly inside it, next to the other pages, CSS, and images.
If you upload a ZIP, extract it there. Check that it hasn't left index.html inside an extra first-website folder. Keep a backup before replacing an existing website.
See Hostinger's File Manager instructions for the upload steps. This method is for hosting that accepts your own files; a site managed by its AI Website Builder uses a different workflow.
If your host gives you FTP or SFTP details, you can use a transfer client to upload the same files. After editing in Phoenix Code, upload the changed files again.
The website opens, but its pictures or styles are missing
Check that you sent the image folders and CSS files as well as the HTML pages. Keep the same folder arrangement as in your project. Match capital letters in filenames exactly.
The other person can't open the link
Copy the address of the published page. An address containing localhost only points to the device opening it. A Phoenix Code editor address opens the editor.
The built-in shared preview lasts three days. If it has expired, publish again or choose Keep it online above.
Publishing says my project is too large
The built-in preview supports up to 500 files. Make a folder containing only the website files you want visitors to see. Leave dependency folders such as node_modules out of that copy, then open and publish it.
A PHP application or a Python web server needs hosting that can run that program. The static-site steps here are for HTML websites.