60 lines
1.2 KiB
Markdown
60 lines
1.2 KiB
Markdown
|
|
# ✅ Syntax Error Fixed!
|
||
|
|
|
||
|
|
The syntax error in `ONE_COMMAND_SETUP.sh` has been fixed. The script is now ready to run.
|
||
|
|
|
||
|
|
## Run the Setup
|
||
|
|
|
||
|
|
The script needs your **sudo password** to create the database. Run:
|
||
|
|
|
||
|
|
```bash
|
||
|
|
cd /home/intlc/projects/Sankofa/api
|
||
|
|
./ONE_COMMAND_SETUP.sh
|
||
|
|
```
|
||
|
|
|
||
|
|
When prompted, enter your sudo password.
|
||
|
|
|
||
|
|
## What the Script Does
|
||
|
|
|
||
|
|
1. ✅ Configures `.env` file (already done)
|
||
|
|
2. ⏳ Creates `sankofa` database (needs sudo)
|
||
|
|
3. ⏳ Sets PostgreSQL password (needs sudo)
|
||
|
|
4. ⏳ Runs migrations
|
||
|
|
5. ⏳ Seeds all 9 services
|
||
|
|
6. ⏳ Verifies setup
|
||
|
|
|
||
|
|
## Alternative: Manual Database Setup
|
||
|
|
|
||
|
|
If you prefer to set up the database manually first:
|
||
|
|
|
||
|
|
```bash
|
||
|
|
# 1. Create database and set password (one command)
|
||
|
|
sudo -u postgres psql << 'EOSQL'
|
||
|
|
CREATE DATABASE sankofa;
|
||
|
|
ALTER USER postgres PASSWORD 'dev_sankofa_2024_secure';
|
||
|
|
\q
|
||
|
|
EOSQL
|
||
|
|
|
||
|
|
# 2. Then run automated setup (no sudo needed)
|
||
|
|
cd /home/intlc/projects/Sankofa/api
|
||
|
|
./RUN_ME.sh
|
||
|
|
```
|
||
|
|
|
||
|
|
## After Setup
|
||
|
|
|
||
|
|
Once complete, verify:
|
||
|
|
|
||
|
|
```bash
|
||
|
|
pnpm verify:sovereign-stack
|
||
|
|
```
|
||
|
|
|
||
|
|
You should see:
|
||
|
|
```
|
||
|
|
✅ Phoenix publisher found: Phoenix Cloud Services
|
||
|
|
✅ Found 9 Phoenix services
|
||
|
|
✅ All 9 expected services found!
|
||
|
|
```
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
**The script is fixed and ready!** Just run it and enter your sudo password when prompted. 🚀
|