amjiddader
Error Deploying simple PHP code.
Howdy,
I tried to deploy using 2 methods ( on other providers including Heroku everything seems working)
Method 1 : Deploy using PHP (auto deduct)
It works but with 1 major problem.
I need to have a folder writable (777) where json files will be stored when user submits request. and also files needs to writeable when user will modify request _ stored in json file e.g: aliya_29_abc.json
ERROR: file aliya_29_abc.json is not writable permission denied.
Method 2 : Using docker
This method is usually easy and works on Heroku.
1 file Dockerfile
1 Folder src/ includes all website code..
It does deploy successfully but when i generate domain and open domain it gives error ( i have tried some tweaks - but no luck)
USEFUL INFORMATION
You might need below details...
GitHub source code : https://github.com/amjiddader/railway_apache2 (original project is private but this link shows exact same method)
Railway Project Domain: https://railwayapache2-production-7e56.up.railway.app/
Project ID: 8fa60338-0ec0-4114-a6ba-31f63fb07aa6
Railway Error: Application failed to respond
-----------------------------------
Note: i tried with
EXPOSE 8080 / 80 and 10 others
I have Tried different images i.e: FROM ubuntu:20.04 '/ FROM php:8.2-apache ,/ FROM php:8.2-fpm
Final thoughts...
I never though i will stuck in this situation , i have always used Heroku and still using heroku only drawback is DYNO are small lazy as they sleep every 30 mins..
I am totally new to Heroku ..
57 replies